Skip to content

Commit

Permalink
Implemented validator integer min/max value
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-kg committed Aug 14, 2020
1 parent 266be23 commit 6d5c0cd
Show file tree
Hide file tree
Showing 19 changed files with 26,272 additions and 92 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Classes for data validation
- `new WsjcppValidatorBase64()` - validate format of base64
- `new WsjcppValidatorNumber()` - validate format of number
- `new WsjcppValidatorHex()` - validate hex value
- `new WsjcppValidatorIntegerMinValue(1)` - validate integer min value
- `new WsjcppValidatorIntegerMaxValue(100)` - validate integer max value

## Completed static functions

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

Just include this files:

- src.wsjcpp/nlohmann_json/json.hpp
- src/wsjcpp_validators.h
- src/wsjcpp_validators.cpp

Expand Down
10 changes: 8 additions & 2 deletions src.wsjcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automaticly generated by wsjcpp@v0.1.5
cmake_minimum_required(VERSION 3.0)

add_definitions(-DWSJCPP_APP_VERSION="v0.1.1")
add_definitions(-DWSJCPP_APP_VERSION="v0.1.2")
add_definitions(-DWSJCPP_APP_NAME="wsjcpp-validators")

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

# wsjcpp-core:v0.1.1
# wsjcpp-core:v0.1.7
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_resources_manager.h")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_resources_manager.cpp")

# nlohmann/json:v3.9.1
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/nlohmann_json/")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/nlohmann_json/json.hpp")

# required-libraries
list (APPEND WSJCPP_LIBRARIES "-lpthread")
Expand Down
Loading

0 comments on commit 6d5c0cd

Please sign in to comment.