11# wsjcpp-yaml
22
3- [ ![ Build Status] ( https://api.travis-ci.com /wsjcpp/wsjcpp-yaml.svg?branch=master )] ( https://api.travis-ci.com /wsjcpp/wsjcpp-yaml ) [ ![ Github Stars] ( https://img.shields.io/github/stars/wsjcpp/wsjcpp-yaml.svg?label=github%20%E2%98%85 )] ( https://github.com/wsjcpp/wsjcpp-yaml/stargazers ) [ ![ Github Stars] ( https://img.shields.io/github/contributors/wsjcpp/wsjcpp-yaml.svg )] ( https://github.com/wsjcpp/wsjcpp-yaml/ ) [ ![ Github Forks] ( https://img.shields.io/github/forks/wsjcpp/wsjcpp-yaml.svg?label=github%20forks )] ( https://github.com/wsjcpp/wsjcpp-yaml/network/members )
3+ [ ![ Build Status] ( https://api.travis-ci.org /wsjcpp/wsjcpp-yaml.svg?branch=master )] ( https://api.travis-ci.org /wsjcpp/wsjcpp-yaml ) [ ![ Github Stars] ( https://img.shields.io/github/stars/wsjcpp/wsjcpp-yaml.svg?label=github%20%E2%98%85 )] ( https://github.com/wsjcpp/wsjcpp-yaml/stargazers ) [ ![ Github Stars] ( https://img.shields.io/github/contributors/wsjcpp/wsjcpp-yaml.svg )] ( https://github.com/wsjcpp/wsjcpp-yaml/ ) [ ![ Github Forks] ( https://img.shields.io/github/forks/wsjcpp/wsjcpp-yaml.svg?label=github%20forks )] ( https://github.com/wsjcpp/wsjcpp-yaml/network/members )
44
55C++ Write/Reader yaml files
66
@@ -11,8 +11,8 @@ include files:
1111
1212- src/wsjcpp_yaml.cpp
1313- src/wsjcpp_yaml.h
14- - src.wsjcpp/wsjcpp-logger/fallen .h
15- - src.wsjcpp/wsjcpp-logger/fallen .cpp
14+ - src.wsjcpp/wsjcpp-core/wsjcpp_core .h
15+ - src.wsjcpp/wsjcpp-core/wsjcpp_core .cpp
1616
1717In you main file configure logger:
1818
@@ -21,18 +21,17 @@ In you main file configure logger:
2121#include < string.h>
2222#include < iostream>
2323#include " wsjcpp_yaml.h"
24- #include " fallen.h"
25-
24+ #include " wsjcpp_core.h"
2625
2726
2827int main (int argc, char* argv[ ] ) {
2928 std::string TAG = "MAIN";
3029 std::string appLogPath = ".logs";
31- Log ::setLogDirectory(appLogPath);
32- if (!Fallen ::dirExists(appLogPath)) {
33- Fallen ::makeDir(appLogPath);
30+ WSJCppLog ::setLogDirectory(appLogPath);
31+ if (!WSJCppCore ::dirExists(appLogPath)) {
32+ WSJCppCore ::makeDir(appLogPath);
3433 }
35- Log ::info(TAG, "Hello!");
34+ WSJCppLog ::info(TAG, "Hello!");
3635
3736 // now you can use WSJCppYAML
3837 WSJCppYAML yaml;
@@ -45,7 +44,7 @@ int main(int argc, char* argv[]) {
4544 " - test1 \n"
4645 " - test2 \n"
4746 )) {
48- Log ::throw_err(TAG, "Error parsing");
47+ WSJCppLog ::throw_err(TAG, "Error parsing");
4948 return -1;
5049 }
5150
0 commit comments