#include <input_validator.h>
|
| DoubleRangeValidator (double minValue, double maxValue, bool is_min_inclusive=true, bool is_max_inclusive=true) |
|
| DoubleRangeValidator (std::function< std::pair< double, double >()> range_func) |
|
| DoubleRangeValidator (std::function< std::tuple< double, double, bool, bool >()> range_func) |
|
bool | isValid (std::string value) override |
|
std::string | getMessage (std::string value) override |
| Returns a meaningful message in case the value is not valid. More...
|
|
Definition at line 89 of file input_validator.h.
arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
double |
minValue, |
|
|
double |
maxValue, |
|
|
bool |
is_min_inclusive = true , |
|
|
bool |
is_max_inclusive = true |
|
) |
| |
arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
std::function< std::pair< double, double >()> |
range_func | ) |
|
arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
std::function< std::tuple< double, double, bool, bool >()> |
range_func | ) |
|
std::string arcs::aubo_scope::DoubleRangeValidator::getMessage |
( |
std::string |
value | ) |
|
|
overridevirtual |
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.
bool arcs::aubo_scope::DoubleRangeValidator::isValid |
( |
std::string |
value | ) |
|
|
overridevirtual |
void arcs::aubo_scope::DoubleRangeValidator::updateValue |
( |
| ) |
|
|
private |
bool arcs::aubo_scope::DoubleRangeValidator::is_max_inclusive_ { true } |
|
private |
bool arcs::aubo_scope::DoubleRangeValidator::is_min_inclusive_ { true } |
|
private |
double arcs::aubo_scope::DoubleRangeValidator::max_value_ { DBL_MAX } |
|
private |
double arcs::aubo_scope::DoubleRangeValidator::min_value_ { DBL_MIN } |
|
private |
std::function<std::pair<double, double>)> arcs::aubo_scope::DoubleRangeValidator::range_func_ { nullptr } |
|
private |
std::function<std::tuple<double, double, bool, bool>)> arcs::aubo_scope::DoubleRangeValidator::range_func_with_flags_ { nullptr } |
|
private |
The documentation for this struct was generated from the following file: