AuboStudio SDK  0.6.3
arcs::aubo_scope::InputValidator结构体 参考abstract

#include <input_validator.h>

类 arcs::aubo_scope::InputValidator 继承关系图:

Public 成员函数

virtual bool isValid (std::string value)=0
virtual std::string getMessage (std::string value)=0
 Returns a meaningful message in case the value is not valid.

详细描述

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).

在文件 input_validator.h30 行定义.

成员函数说明

◆ getMessage()

virtual std::string arcs::aubo_scope::InputValidator::getMessage ( std::string value)
pure virtual

Returns a meaningful message in case the value is not valid.

参数
valuethe invalid value. Can be included in the message if it makes sense.
返回
message.

arcs::aubo_scope::DoubleRangeValidator, arcs::aubo_scope::IntegerRangeValidator, arcs::aubo_scope::StringLengthValidator , 以及 arcs::aubo_scope::UIntegerRangeValidator 内被实现.

◆ isValid()

virtual bool arcs::aubo_scope::InputValidator::isValid ( std::string value)
pure virtual

该结构体的文档由以下文件生成: