Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::Kernel::DateValidator Class Reference

DateValidator is a validator that validates date, format of valid date is "DD/MM/YYYY" At present, this validator is only available for properties of type std::string This class has written for validating start and end dates of ICat interface. More...

#include <DateValidator.h>

Inheritance diagram for Mantid::Kernel::DateValidator:

Public Member Functions

IValidator_sptr clone () const override
 Clone the current state. More...
 

Private Member Functions

std::string checkValidity (const std::string &value) const override
 Checks the value is valid. More...
 

Detailed Description

DateValidator is a validator that validates date, format of valid date is "DD/MM/YYYY" At present, this validator is only available for properties of type std::string This class has written for validating start and end dates of ICat interface.

Author
Sofia Antony, STFC Rutherford Appleton Laboratory
Date
03/09/2010

Definition at line 26 of file DateValidator.h.

Member Function Documentation

◆ checkValidity()

std::string Mantid::Kernel::DateValidator::checkValidity ( const std::string &  value) const
overrideprivate

Checks the value is valid.

Checks the given value is a valid date.

Parameters
value:: input date property to validate
Returns
a string which describes the error else ""

Definition at line 100 of file DateValidator.cpp.

References value.

◆ clone()

IValidator_sptr Mantid::Kernel::DateValidator::clone ( ) const
override

Clone the current state.

create a copy of the the validator

Definition at line 94 of file DateValidator.cpp.


The documentation for this class was generated from the following files: