Wt::WDateValidator Class Reference

A validator for dates. More...

Inherits Wt::WValidator.

Inheritance diagram for Wt::WDateValidator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WDateValidator (const WDate &bottom=WDate::NoDate, const WDate &top=WDate::NoDate)
 Construct a date validator.
virtual State validate (WString &input, int &pos) const
 Evaluate the validness of the given input.

Static Public Member Functions

static WDate parse (const WString &input)
 Parse a date.

Detailed Description

A validator for dates.

This validator only accepts input in the dd/mm/yyyy format, and checks that the date is in the right range.


Constructor & Destructor Documentation

Wt::WDateValidator::WDateValidator ( const WDate bottom = WDate::NoDate,
const WDate top = WDate::NoDate 
)

Construct a date validator.

The validator will accept only dates in the indicated range.


Member Function Documentation

WDate Wt::WDateValidator::parse ( const WString input  )  [static]

Parse a date.

Returns WDate::NoDate when the input is invalid.

WValidator::State Wt::WDateValidator::validate ( WString input,
int &  pos 
) const [virtual]

Evaluate the validness of the given input.

This function returns the current state of the input.

The function can change both input and pos (the cursor position) if required.

Reimplemented from Wt::WValidator.


The documentation for this class was generated from the following files:
Generated on Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7