Mantid
Loading...
Searching...
No Matches
Framework
Kernel
src
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 +
7
#include "
MantidKernel/NullValidator.h
"
8
#include <memory>
9
10
namespace
Mantid::Kernel
{
11
IValidator_sptr
NullValidator::clone
()
const
{
return
std::make_shared<NullValidator>(*
this
); }
12
16
std::string
NullValidator::check
(
const
boost::any &
/*unused*/
)
const
{
return
""
; }
17
}
// namespace Mantid::Kernel
NullValidator.h
Mantid::Kernel::NullValidator::check
std::string check(const boost::any &) const override
Always returns valid, that is "".
Definition:
NullValidator.cpp:16
Mantid::Kernel::NullValidator::clone
IValidator_sptr clone() const override
Make a copy of the present type of validator.
Definition:
NullValidator.cpp:11
Mantid::Kernel
Definition:
AnnularRingAbsorption.h:15
Mantid::Kernel::IValidator_sptr
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition:
IValidator.h:26
Generated on Tue Jan 3 2023 11:57:51 for Mantid by
1.9.5