74 Range(std::vector<T> limits);
101 bool check(
const T & value);
118 Range(
size_t low,
size_t high);
119 Range(std::vector<size_t> limits);
122 bool check(
const std::string& value);
134 std::vector<std::string> choices;
138 Range(std::vector<std::string> choices);
141 bool check(
const std::string& value);
158 if (limits.size() == 0)
162 else if (limits.size() == 2)
170 throw std::runtime_error(
"Invalid vector for range initialization!");
185 range_array[0] = to_json<T>(low);
186 range_array[1] = to_json<T>(high);
197 return ((value >= low) && (value <= high));
bool check(const std::string &value)
Range(std::vector< std::string > choices)
bool check(const SOIL::ENUM &value)
HTTP::Json wjson(void)
HTTP JSON.
Range()
Default Constructor.
bool check(const T &value)
Check.
web::json::value Json
HTTP JSON.