AuboStudio SDK 0.6.3

Public 成员函数 | 所有成员列表
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 {}. 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.h 第 30 行定义.

## 成员函数说明

## ◆ 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.

参数

  value | the invalid value. Can be included in the message if it makes sense.

返回
  message.

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

## ◆ isValid()

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

参数

  value | to be validated.

返回
  `true` if value is valid.

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

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

- include/aubo_caps/domain/user_interface/input_validator.h