Interface for validators that provide checking and changing of user input. More...
#include <GUIValidator.h>
Public Member Functions | |
CGUIValidator () | |
Default constructor. | |
virtual | ~CGUIValidator () |
Destructor. | |
virtual eC_Bool | IsValid (const eC_String &rValue) const =0 |
virtual void | MakeValid (eC_String &rValue) const =0 |
Interface for validators that provide checking and changing of user input.
Specializations have to implement the method IsValid() to return a boolean value that indicates whether the input was valid. In addition, the method MakeValid() should be implemented to change an input text in a way that makes it valid.
Validators are meant to be used with input fields (see CGUIBaseInputField).
|
pure virtual |
Checks a value for validity.
rValue | The value to be checked. |
Implemented in CGUIColorStringValidator, and CGUIIntValidator.
|
pure virtual |
Tries to make a value valid.
[in,out] | rValue | The value to be checked and made valid, if possible. If the implementation is not able to correct the value or if it is already valid, the value can also be left unchanged. |
Implemented in CGUIColorStringValidator, and CGUIIntValidator.