13 if (limits.size() == 0)
17 else if (limits.size() == 2)
25 throw std::runtime_error(
"Invalid vector for range initialization!");
35 web::json::value range_array = web::json::value::array();
48 return ((value.size() >= low) && (value.size() <= high));
74 web::json::value range_array = web::json::value::array();
77 for (
int i = 0; i < static_cast<int>(choices.size()); i++)
79 range_array[i] = SOIL::to_json<std::string>(choices.at(i));
89 for (
int i = 0; i < static_cast<int>(choices.size()); i++)
91 if (value == choices.at(i))
106 return this->check(value.
selected());
std::string selected(void) const
Get selected value.
HTTP::Json wjson(void)
HTTP JSON.
Range()
Default Constructor.
bool check(const T &value)
Check.
DLL web::json::value to_json< int >(const int &value)