|
AuboStudio SDK
0.6.3
|
|
|
|
|
\chinese 输入验证器 表示由 InputValidationFactory 创建的输入验证器接口。该工厂提供一组标准 输入验证器,可用于验证用户使用虚拟键盘/小键盘输入的内容。
更多...
#include <input_validator.h>

Public 成员函数 | |
| virtual bool | isValid (std::string value)=0 |
| \chinese 验证输入值是否有效。 | |
| virtual std::string | getMessage (std::string value)=0 |
| \chinese 当值无效时返回有意义的提示信息。 | |
\chinese 输入验证器 表示由 InputValidationFactory 创建的输入验证器接口。该工厂提供一组标准 输入验证器,可用于验证用户使用虚拟键盘/小键盘输入的内容。
如果 InputValidationFactory 中可用的标准验证器不能满足您的需求,您可以 自由实现自己的自定义验证器。
| <T> | 表示正在验证的输入数据类型的接口(通用)类型参数(例如 Integer 或 Double)。 \endchinese \english InputValidator Interface representing the input validators created by InputValidationFactory. This factory provides a set of standard input validators that can be used for validating the input entered by the user using the virtual keyboard/keypad. |
If the standard validators available in the InputValidationFactory does not satisfy your needs, you are free to implement your own custom validator.
| <T> | the (generic) type parameter for the interface representing the type of input data being validated (e.g. Integer or Double). \endenglish |
在文件 input_validator.h 第 41 行定义.
|
pure virtual |
\chinese 当值无效时返回有意义的提示信息。
| value | 无效的值,如果合理可包含在消息中 |
| value | the invalid value. Can be included in the message if it makes sense. |
在 arcs::aubo_scope::DoubleRangeValidator, arcs::aubo_scope::IntegerRangeValidator, arcs::aubo_scope::StringLengthValidator , 以及 arcs::aubo_scope::UIntegerRangeValidator 内被实现.
|
pure virtual |
\chinese 验证输入值是否有效。
| value | 需要验证的值 |
true \endchinese \english Validates whether the input value is valid.| value | to be validated. |
true if value is valid. \endenglish 在 arcs::aubo_scope::DoubleRangeValidator, arcs::aubo_scope::IntegerRangeValidator, arcs::aubo_scope::StringLengthValidator , 以及 arcs::aubo_scope::UIntegerRangeValidator 内被实现.