Wt
4.11.1
|
A class that holds a validation result. More...
#include <WValidator.h>
Public Member Functions | |
Result () | |
Default constructor. More... | |
Result (ValidationState state, const WString &message) | |
Constructor. More... | |
Result (ValidationState state) | |
Constructor. More... | |
ValidationState | state () const |
Returns the validation state. | |
const WString & | message () const |
Returns the validation message. | |
A class that holds a validation result.
This structure is returned as the result of validation.
Wt::WValidator::Result::Result | ( | ) |
Default constructor.
Creates an invalid result.
Wt::WValidator::Result::Result | ( | ValidationState | state, |
const WString & | message | ||
) |
Constructor.
Creates a result with given state
and message
.
|
explicit |
Constructor.
Creates a result with given state
and initalizes the message field to an empty WString.