Wt  4.0.2
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. More...
 
 Result (ValidationState state, const WString &message)
 Constructor. More...
 
 Result (ValidationState state)
 Constructor. More...
 
ValidationState state () const
 Returns the validation state.
 
const WStringmessage () 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 ( ValidationState  state,
const WString message 
)

Constructor.

Creates a result with given state and message.

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

Constructor.

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


Generated on Fri Nov 24 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11