Mantid
Loading...
Searching...
No Matches
StringContainsValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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
11
12namespace Mantid {
13namespace Kernel {
14
22class MANTID_KERNEL_DLL StringContainsValidator : public TypedValidator<std::string> {
23public:
25 StringContainsValidator(const std::vector<std::string> &);
26
28 IValidator_sptr clone() const override;
29
31 void setRequiredStrings(const std::vector<std::string> &);
32
33private:
35 std::string checkValidity(const std::string &value) const override;
36
39 std::vector<std::string> m_requiredStrings;
40};
41
42} // namespace Kernel
43} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
StringContainsValidator : A validator designed to ensure that a string input contain a given sub stri...
std::vector< std::string > m_requiredStrings
A vector of the sub strings the string must contain in order to pass validation.
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.