Mantid
Loading...
Searching...
No Matches
NullValidator.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 +
8#include <memory>
9
10namespace Mantid::Kernel {
11IValidator_sptr NullValidator::clone() const { return std::make_shared<NullValidator>(*this); }
12
16std::string NullValidator::check(const boost::any & /*unused*/) const { return ""; }
17} // namespace Mantid::Kernel
std::string check(const boost::any &) const override
Always returns valid, that is "".
IValidator_sptr clone() const override
Make a copy of the present type of validator.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition: IValidator.h:26