Mantid
Loading...
Searching...
No Matches
DateTimeValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidKernel/DllConfig.h"
12#include <string>
13
14namespace Mantid {
15namespace Kernel {
20class MANTID_KERNEL_DLL DateTimeValidator : public TypedValidator<std::string> {
21public:
23
25 IValidator_sptr clone() const override;
26
27 void allowEmpty(const bool &);
28
29private:
31 std::string checkValidity(const std::string &value) const override;
32
35};
36} // namespace Kernel
37} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
Checks that a string contains a timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SS....
bool m_allowedEmpty
Allows for an empty string to be accepted as input.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition: IValidator.h:26
Helper class which provides the Collimation Length for SANS instruments.