Mantid
|
Checks that a string contains a timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) More...
#include <DateTimeValidator.h>
Public Member Functions | |
void | allowEmpty (const bool &) |
Sets the value of the m_allowEmpty variable. More... | |
IValidator_sptr | clone () const override |
Clone the current state. More... | |
DateTimeValidator () | |
Private Member Functions | |
std::string | checkValidity (const std::string &value) const override |
Checks the value is valid. More... | |
Private Attributes | |
bool | m_allowedEmpty |
Allows for an empty string to be accepted as input. More... | |
Checks that a string contains a timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
Definition at line 20 of file DateTimeValidator.h.
Mantid::Kernel::DateTimeValidator::DateTimeValidator | ( | ) |
Definition at line 22 of file DateTimeValidator.cpp.
References m_allowedEmpty.
void Mantid::Kernel::DateTimeValidator::allowEmpty | ( | const bool & | allow | ) |
Sets the value of the m_allowEmpty variable.
allow | The new value of m_allowEmpty |
Definition at line 28 of file DateTimeValidator.cpp.
References m_allowedEmpty.
|
overrideprivate |
Checks the value is valid.
value | A string to check for an ISO formatted timestamp |
Definition at line 35 of file DateTimeValidator.cpp.
References error, m_allowedEmpty, UNUSED_ARG, and value.
|
override |
Clone the current state.
Definition at line 20 of file DateTimeValidator.cpp.
|
private |
Allows for an empty string to be accepted as input.
Definition at line 34 of file DateTimeValidator.h.
Referenced by allowEmpty(), checkValidity(), and DateTimeValidator().