|
AuboStudio SDK
0.6.2
|
#include <input_validator.h>

Public Member Functions | |
| 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. More... | |
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). |
Definition at line 30 of file input_validator.h.
|
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. |
Implemented in arcs::aubo_scope::StringLengthValidator, arcs::aubo_scope::DoubleRangeValidator, arcs::aubo_scope::UIntegerRangeValidator, and arcs::aubo_scope::IntegerRangeValidator.
|
pure virtual |
| value | to be validated. |
true if value is valid. Implemented in arcs::aubo_scope::StringLengthValidator, arcs::aubo_scope::DoubleRangeValidator, arcs::aubo_scope::UIntegerRangeValidator, and arcs::aubo_scope::IntegerRangeValidator.
1.8.11