Skip to content

Commit 1cb966d

Browse files
committed
Updated wsjcpp-core library
1 parent 5e87dd1 commit 1cb966d

18 files changed

+387
-328
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
C++ 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

1717
In 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

2827
int 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

src.wsjcpp/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ set (WSJCPP_LIBRARIES "")
1010
set (WSJCPP_INCLUDE_DIRS "")
1111
set (WSJCPP_SOURCES "")
1212

13-
list (APPEND WSJCPP_INCLUDE_DIRS "src.wsjcpp/wsjcpp-logger/")
14-
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-logger/fallen.cpp")
15-
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-logger/fallen.h")
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src.wsjcpp/wsjcpp-core/")
14+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-core/wsjcpp_core.h")
15+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-core/wsjcpp_core.cpp")
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
wsjcpp: 1.0.0
3+
cmake_cxx_standard: 11
4+
cmake_minimum_required: 3.0
5+
6+
name: wsjcpp/wsjcpp-core
7+
version: 0.0.1
8+
description: Basic Utils for wsjcpp
9+
issues: https://github.com/wsjcpp/wsjcpp-core/issues
10+
repositories:
11+
- "https://github.com/wsjcpp/wsjcpp-core"
12+
keywords:
13+
- c++
14+
- wsjcpp
15+
16+
authors:
17+
- name: Evgenii Sopov
18+
email: mrseakg@gmail.com
19+
20+
requirements:
21+
libs:
22+
- pthread
23+
24+
distribution:
25+
sources:
26+
- from: src/wsjcpp_core.cpp
27+
to: wsjcpp_core.cpp
28+
sha1: ""
29+
- from: src/wsjcpp_core.h
30+
to: wsjcpp_core.h
31+
sha1: ""
32+
33+
unit-tests:
34+
folder: unit-tests # default
35+
files:
36+
- unit-tests/src/main.cpp
37+
- unit-tests/src/unit_tests.h
38+
- unit-tests/src/unit_tests.cpp

0 commit comments

Comments
 (0)