Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 986f044

Browse files
committedApr 4, 2020
Updated wsjcpp-core to v0.1.0
1 parent 270874e commit 986f044

20 files changed

+400
-309
lines changed
 

‎README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wsjcpp-arguments
22

3-
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-arguments.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-arguments) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-arguments.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-arguments/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-arguments.svg)](https://github.com/wsjcpp/wsjcpp-arguments/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-arguments.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-arguments/network/members)
3+
[![Build Status](https://api.travis-ci.com/wsjcpp/wsjcpp-arguments.svg?branch=master)](https://travis-ci.com/wsjcpp/wsjcpp-arguments) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-arguments.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-arguments/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-arguments.svg)](https://github.com/wsjcpp/wsjcpp-arguments/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-arguments.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-arguments/network/members)
44

55
Parsing and handling for application arguments
66

@@ -26,7 +26,7 @@ header `argument_processor_test_program.h`:
2626
2727
#include <wsjcpp_arguments.h>
2828
29-
class ArgumentProcessorMain : public WSJCppArgumentProcessor {
29+
class ArgumentProcessorMain : public WsjcppArgumentProcessor {
3030
public:
3131
ArgumentProcessorMain();
3232
@@ -48,7 +48,7 @@ source-code `argument_processor_main.cpp`:
4848
// ArgumentProcessorMain
4949
5050
ArgumentProcessorMain::ArgumentProcessorMain()
51-
: WSJCppArgumentProcessor("test_program", "TODO description") {
51+
: WsjcppArgumentProcessor("test_program", "TODO description") {
5252
TAG = "ArgumentProcessorMain";
5353
// registrySingleArgument("--single", "What exactly do this single param?");
5454
// registryParameterArgument("-param", "What need this param?");
@@ -59,7 +59,7 @@ ArgumentProcessorMain::ArgumentProcessorMain()
5959
// ---------------------------------------------------------------------
6060
6161
bool ArgumentProcessorMain::applySingleArgument(const std::string &sProgramName, const std::string &sArgumentName) {
62-
WSJCppLog::err(TAG, "Not implemented");
62+
WsjcppLog::err(TAG, "Not implemented");
6363
return false;
6464
}
6565
@@ -70,14 +70,14 @@ bool ArgumentProcessorMain::applyParameterArgument(
7070
const std::string &sArgumentName,
7171
const std::string &sValue
7272
) {
73-
WSJCppLog::err(TAG, "Not implemented");
73+
WsjcppLog::err(TAG, "Not implemented");
7474
return false;
7575
}
7676
7777
// ---------------------------------------------------------------------
7878
7979
int ArgumentProcessorMain::exec(const std::string &sProgramName, const std::vector<std::string> &vSubParams) {
80-
WSJCppLog::err(TAG, "Not implemented");
80+
WsjcppLog::err(TAG, "Not implemented");
8181
return -1;
8282
}
8383
```
@@ -90,7 +90,7 @@ usage:
9090
9191
int main(int argc, const char* argv[]) {
9292
ArgumentProcessorMain *pMain = new ArgumentProcessorMain();
93-
WSJCppArguments prog(argc, argv, pMain);
93+
WsjcppArguments prog(argc, argv, pMain);
9494
9595
int nResult = prog.exec();
9696
if (nResult != 0) {

‎scripts.wsjcpp/generate.WSJCppArgumentProcessor renamed to ‎scripts.wsjcpp/generate.WsjcppArgumentProcessor

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ concat content_header "#ifndef " ifndef_header "
3636

3737
#include <wsjcpp_arguments.h>
3838

39-
class " class_name " : public WSJCppArgumentProcessor {
39+
class " class_name " : public WsjcppArgumentProcessor {
4040
public:
4141
" class_name "();
4242

@@ -57,7 +57,7 @@ concat content_source "
5757
// " class_name "
5858

5959
" class_name "::" class_name "()
60-
: WSJCppArgumentProcessor({\"" argument_processor_name "\"}, \"TODO description\") {
60+
: WsjcppArgumentProcessor({\"" argument_processor_name "\"}, \"TODO description\") {
6161
TAG = \"" class_name "\";
6262
// registrySingleArgument(\"--single\", \"What exactly do this single param?\");
6363
// registryParameterArgument(\"-param\", \"What need this param?\");
@@ -68,7 +68,7 @@ concat content_source "
6868
// ---------------------------------------------------------------------
6969

7070
bool " class_name "::applySingleArgument(const std::string &sProgramName, const std::string &sArgumentName) {
71-
WSJCppLog::err(TAG, \"Not implemented\");
71+
WsjcppLog::err(TAG, \"Not implemented\");
7272
return false;
7373
}
7474

@@ -79,14 +79,14 @@ bool " class_name "::applyParameterArgument(
7979
const std::string &sArgumentName,
8080
const std::string &sValue
8181
) {
82-
WSJCppLog::err(TAG, \"Not implemented\");
82+
WsjcppLog::err(TAG, \"Not implemented\");
8383
return false;
8484
}
8585

8686
// ---------------------------------------------------------------------
8787

8888
int " class_name "::exec(const std::string &sProgramName, const std::vector<std::string> &vSubParams) {
89-
WSJCppLog::err(TAG, \"Not implemented\");
89+
WsjcppLog::err(TAG, \"Not implemented\");
9090
return -1;
9191
}
9292
"

‎src.wsjcpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set (WSJCPP_SOURCES "")
1717
find_package(Threads REQUIRED)
1818
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
1919

20-
# wsjcpp-core:v0.0.8
20+
# wsjcpp-core:v0.1.0
2121
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
2222
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
2323
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")

‎src.wsjcpp/wsjcpp_core/wsjcpp.hold.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_cxx_standard: 11
33
cmake_minimum_required: 3.0
44

55
name: wsjcpp-core
6-
version: v0.0.8
6+
version: v0.1.0
77
description: Basic Utils for wsjcpp
88
issues: https://github.com/wsjcpp/wsjcpp-core/issues
99
repositories:
@@ -64,3 +64,7 @@ unit-tests:
6464
description: "Test create empty file"
6565
- name: "ReadFileToBuffer"
6666
description: "test for readFileToBuffer"
67+
- name: "Join"
68+
description: "Test join function"
69+
- name: "getHumanSizeBytes"
70+
description: "Test function get human size in bytes"

0 commit comments

Comments
 (0)
Please sign in to comment.