Mantid
|
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>
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... | |
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.
Definition at line 26 of file DateValidator.h.
|
overrideprivate |
Checks the value is valid.
Checks the given value is a valid date.
value | :: input date property to validate |
Definition at line 100 of file DateValidator.cpp.
References value.
|
override |
Clone the current state.
create a copy of the the validator
Definition at line 94 of file DateValidator.cpp.