Skip to content

Commit ea39881

Browse files
committed
Fixed travis build && update README.md
1 parent fcb5c3b commit ea39881

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tmp/*
22
wsjcpp-core
3+
.wsjcpp/*
34
.vscode/*
45
*.log
56

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ script:
1919
- ./build_simple.sh
2020
- cd unit-tests.wsjcpp
2121
- ./build_simple.sh
22-
- ./run_unit-tests
22+
- ./run_unit-tests.sh

.wsjcpp/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ Basic utils for wsjcpp
66

77
*included helpers functions, logger and etc.*
88

9-
## List of function:
9+
## Integrate to your project
1010

11-
* createUuid
11+
```
12+
$ wsjcpp install https://github.com/wsjcpp/wsjcpp-core:master
13+
```
14+
15+
Or include files:
16+
17+
* `src/wsjcpp_core.h`
18+
* `src/wsjcpp_core.cpp`
19+
20+
## List of static function:
21+
22+
### createUUID
23+
24+
generation uuid but before you need call once `WSJCppCore::initRandom();` (for example in main function)
25+
26+
```
27+
std::string sUuid = WSJCppCore::createUuid();
28+
```
29+
30+
### readTextFile
31+
32+
Reading text files to std::string
33+
```
34+
std::string sContent;
35+
if (WSJCppCore::readTextFile("./file.txt", sContent)) {
36+
std::cout << sContent;
37+
}
38+
```

0 commit comments

Comments
 (0)