#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.
|
◆ DoubleRangeValidator() [1/3]
| arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
double | minValue, |
|
|
double | maxValue, |
|
|
bool | is_min_inclusive = true, |
|
|
bool | is_max_inclusive = true ) |
◆ DoubleRangeValidator() [2/3]
| arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
std::function< std::pair< double, double >()> | range_func | ) |
|
◆ DoubleRangeValidator() [3/3]
| arcs::aubo_scope::DoubleRangeValidator::DoubleRangeValidator |
( |
std::function< std::tuple< double, double, bool, bool >()> | range_func | ) |
|
◆ getMessage()
| std::string arcs::aubo_scope::DoubleRangeValidator::getMessage |
( |
std::string | value | ) |
|
|
overridevirtual |
Returns a meaningful message in case the value is not valid.
- 参数
-
| value | the invalid value. Can be included in the message if it makes sense. |
- 返回
- message.
实现了 arcs::aubo_scope::InputValidator.
◆ isValid()
| bool arcs::aubo_scope::DoubleRangeValidator::isValid |
( |
std::string | value | ) |
|
|
overridevirtual |
◆ updateValue()
| void arcs::aubo_scope::DoubleRangeValidator::updateValue |
( |
| ) |
|
|
private |
◆ is_max_inclusive_
| bool arcs::aubo_scope::DoubleRangeValidator::is_max_inclusive_ { true } |
|
private |
◆ is_min_inclusive_
| bool arcs::aubo_scope::DoubleRangeValidator::is_min_inclusive_ { true } |
|
private |
◆ max_value_
| double arcs::aubo_scope::DoubleRangeValidator::max_value_ { DBL_MAX } |
|
private |
◆ min_value_
| double arcs::aubo_scope::DoubleRangeValidator::min_value_ { DBL_MIN } |
|
private |
◆ range_func_
| std::function<std::pair<double, double>()> arcs::aubo_scope::DoubleRangeValidator::range_func_ { nullptr } |
|
private |
◆ range_func_with_flags_
| std::function<std::tuple<double, double, bool, bool>()> arcs::aubo_scope::DoubleRangeValidator::range_func_with_flags_ { nullptr } |
|
private |
该结构体的文档由以下文件生成: