#include <input_validator.h>
Definition at line 48 of file input_validator.h.
arcs::aubo_scope::IntegerRangeValidator::IntegerRangeValidator |
( |
int |
min_value, |
|
|
int |
max_value |
|
) |
| |
|
inline |
arcs::aubo_scope::IntegerRangeValidator::IntegerRangeValidator |
( |
std::function< std::pair< int, int >()> |
range_func | ) |
|
|
inline |
std::string arcs::aubo_scope::IntegerRangeValidator::getMessage |
( |
std::string |
value | ) |
|
|
inlineoverridevirtual |
Returns a meaningful message in case the value is not valid.
- Parameters
-
value | the invalid value. Can be included in the message if it makes sense. |
- Returns
- message.
Implements arcs::aubo_scope::InputValidator.
Definition at line 77 of file input_validator.h.
bool arcs::aubo_scope::IntegerRangeValidator::isValid |
( |
std::string |
value | ) |
|
|
inlineoverridevirtual |
void arcs::aubo_scope::IntegerRangeValidator::updateValue |
( |
| ) |
|
|
inlineprivate |
int arcs::aubo_scope::IntegerRangeValidator::max_value_ { INT_MAX } |
|
private |
int arcs::aubo_scope::IntegerRangeValidator::min_value_ { INT_MIN } |
|
private |
std::function<std::pair<int, int>)> arcs::aubo_scope::IntegerRangeValidator::range_func_ { nullptr } |
|
private |
The documentation for this struct was generated from the following file: