Skip to content

Commit 6d5c0cd

Browse files
committed
Implemented validator integer min/max value
1 parent 266be23 commit 6d5c0cd

19 files changed

+26272
-92
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Classes for data validation
1919
- `new WsjcppValidatorBase64()` - validate format of base64
2020
- `new WsjcppValidatorNumber()` - validate format of number
2121
- `new WsjcppValidatorHex()` - validate hex value
22+
- `new WsjcppValidatorIntegerMinValue(1)` - validate integer min value
23+
- `new WsjcppValidatorIntegerMaxValue(100)` - validate integer max value
2224

2325
## Completed static functions
2426

@@ -33,6 +35,7 @@ Classes for data validation
3335

3436
Just include this files:
3537

38+
- src.wsjcpp/nlohmann_json/json.hpp
3639
- src/wsjcpp_validators.h
3740
- src/wsjcpp_validators.cpp
3841

src.wsjcpp/CMakeLists.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Automaticly generated by [email protected]
22
cmake_minimum_required(VERSION 3.0)
33

4-
add_definitions(-DWSJCPP_APP_VERSION="v0.1.1")
4+
add_definitions(-DWSJCPP_APP_VERSION="v0.1.2")
55
add_definitions(-DWSJCPP_APP_NAME="wsjcpp-validators")
66

77
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -17,10 +17,16 @@ set (WSJCPP_SOURCES "")
1717
find_package(Threads REQUIRED)
1818
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
1919

20-
# wsjcpp-core:v0.1.1
20+
# wsjcpp-core:v0.1.7
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")
24+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_resources_manager.h")
25+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_resources_manager.cpp")
26+
27+
# nlohmann/json:v3.9.1
28+
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/nlohmann_json/")
29+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/nlohmann_json/json.hpp")
2430

2531
# required-libraries
2632
list (APPEND WSJCPP_LIBRARIES "-lpthread")

0 commit comments

Comments
 (0)