AuboCaps  0.4.1
arcs::aubo_scope::StringLengthValidator Struct Reference

#include <input_validator.h>

Inheritance diagram for arcs::aubo_scope::StringLengthValidator:
Collaboration diagram for arcs::aubo_scope::StringLengthValidator:

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_
 

Detailed Description

Definition at line 85 of file input_validator.h.

Constructor & Destructor Documentation

arcs::aubo_scope::StringLengthValidator::StringLengthValidator ( int  minLength,
int  maxLength 
)
inline

Definition at line 87 of file input_validator.h.

Member Function Documentation

std::string arcs::aubo_scope::StringLengthValidator::getMessage ( std::string  value)
inlineoverridevirtual

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

Parameters
valuethe invalid value. Can be included in the message if it makes sense.
Returns
message.

Implements arcs::aubo_scope::InputValidator< std::string >.

Definition at line 98 of file input_validator.h.

bool arcs::aubo_scope::StringLengthValidator::isValid ( std::string  value)
inlineoverridevirtual
Parameters
valueto be validated.
Returns
true if value is valid.

Implements arcs::aubo_scope::InputValidator< std::string >.

Definition at line 92 of file input_validator.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following file: