Wt
4.11.0
|
A class that holds a validation result. More...
#include <WValidator.h>
Public Member Functions | |
Result () | |
Default constructor. | |
Result (ValidationState state, const WString &message) | |
Constructor. | |
Result (ValidationState state) | |
Constructor. | |
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.