Wt: Wt::WValidator::Result Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::WValidator::Result Class Reference

A class that holds a validation result. More...

List of all members.

## Public Member Functions
| Result ()
| Default constructor.
| Result (State state, const WString &message)
| Constructor.
| Result (State state)
| Constructor.
State | state () const
| Returns the validation state.
const WString & | message () const
| Returns the validation message.

## Detailed Description

A class that holds a validation result.

This structure is returned as the result of validation.

## Constructor & Destructor Documentation

Wt::WValidator::Result::Result | ( |  | ) |

Default constructor.

Creates an invalid result.

Wt::WValidator::Result::Result | ( | State | state,
|  | const WString & | message
| ) |  |

Constructor.

Creates a result with given `state` and `message`.

Wt::WValidator::Result::Result | ( | State | state | ) |

Constructor.

Creates a result with given `state` and initalizes the message field to an empty WString.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator