|
Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
An abstract field validator interface for validating field values. More...
#include <cafFieldValidator.h>

Public Types | |
| enum | FailureSeverity { VALIDATOR_WARNING, VALIDATOR_ERROR, VALIDATOR_CRITICAL } |
| The severity of failure. Essentially tells the application how to treat a validator failure: VALIDATOR_WARNING -> user warning VALIDATOR_ERROR -> user error VALIDATOR_CRITICAL -> critical application failure. | |
Public Member Functions | |
| FieldValidatorInterface (FailureSeverity failureSeverity) | |
| Construct a new Field Validator Interface object. More... | |
| virtual void | readFromString (const std::string &string)=0 |
| Read the validator from string. More... | |
| virtual std::string | writeToString () const =0 |
| Write the validator tostring. More... | |
| FailureSeverity | failureSeverity () const |
| Get the severity of a failure of the validator. More... | |
An abstract field validator interface for validating field values.
|
inline |
Construct a new Field Validator Interface object.
| failureSeverity | the severity of a validation failure |
|
inline |
Get the severity of a failure of the validator.
|
pure virtual |
Read the validator from string.
| string | the string to read from |
Implemented in caffa::RangeValidator< DataType >.
|
pure virtual |
Write the validator tostring.
Implemented in caffa::RangeValidator< DataType >.
1.8.13