#include <input_validator.h>
◆ StringLengthValidator() [1/2]
| arcs::aubo_scope::StringLengthValidator::StringLengthValidator |
( |
size_t | min_length, |
|
|
size_t | max_length ) |
◆ StringLengthValidator() [2/2]
| arcs::aubo_scope::StringLengthValidator::StringLengthValidator |
( |
std::function< std::pair< size_t, size_t >()> | range_func | ) |
|
◆ getMessage()
| std::string arcs::aubo_scope::StringLengthValidator::getMessage |
( |
std::string | value | ) |
|
|
overridevirtual |
\chinese 当值无效时返回有意义的提示信息。
- 参数
-
- 返回
- 提示消息 \endchinese \english 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. \endenglish
实现了 arcs::aubo_scope::InputValidator.
◆ isValid()
| bool arcs::aubo_scope::StringLengthValidator::isValid |
( |
std::string | value | ) |
|
|
overridevirtual |
\chinese 验证输入值是否有效。
- 参数
-
- 返回
- 如果值有效则返回
true \endchinese \english Validates whether the input value is valid.
- 参数
-
- 返回
true if value is valid. \endenglish
实现了 arcs::aubo_scope::InputValidator.
◆ updateValue()
| void arcs::aubo_scope::StringLengthValidator::updateValue |
( |
| ) |
|
|
private |
◆ max_length_
| size_t arcs::aubo_scope::StringLengthValidator::max_length_ { ULONG_MAX } |
|
private |
◆ min_length_
| size_t arcs::aubo_scope::StringLengthValidator::min_length_ { 0 } |
|
private |
◆ range_func_
| std::function<std::pair<size_t, size_t>()> arcs::aubo_scope::StringLengthValidator::range_func_ { nullptr } |
|
private |
该结构体的文档由以下文件生成: