AuboCaps
0.5.0
|
#include <input_validator.h>
Public Member Functions | |
StringLengthValidator (int minLength, int maxLength) | |
bool | isValid (std::string value) override |
std::string | getMessage (std::string value) override |
Returns a meaningful message in case the value is not valid. More... | |
Public Attributes | |
int | min_length_ |
int | max_length_ |
Definition at line 85 of file input_validator.h.
|
inline |
Definition at line 87 of file input_validator.h.
|
inlineoverridevirtual |
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. |
Implements arcs::aubo_scope::InputValidator< std::string >.
Definition at line 98 of file input_validator.h.
|
inlineoverridevirtual |
value | to be validated. |
true
if value is valid. Implements arcs::aubo_scope::InputValidator< std::string >.
Definition at line 92 of file input_validator.h.
int arcs::aubo_scope::StringLengthValidator::max_length_ |
Definition at line 111 of file input_validator.h.
int arcs::aubo_scope::StringLengthValidator::min_length_ |
Definition at line 110 of file input_validator.h.