Wt: Wt::WValidator::Result Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::WValidator::Result Class Reference

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.

## Detailed Description

A class that holds a validation result.

This structure is returned as the result of validation.

## Constructor & Destructor Documentation

## ◆ Result() [1/3]

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

Default constructor.

Creates an invalid result.

## ◆ Result() [2/3]

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

Constructor.

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

## ◆ Result() [3/3]

Wt::WValidator::Result::Result | ( | ValidationState | state | ) |
| explicit

Constructor.

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