Mantid
Loading...
Searching...
No Matches
AlgorithmHasProperty.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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 "MantidAPI/DllConfig.h"
11
12namespace Mantid {
13namespace API {
14
15class IAlgorithm;
16
24class MANTID_API_DLL AlgorithmHasProperty : public Kernel::TypedValidator<std::shared_ptr<IAlgorithm>> {
25public:
26 AlgorithmHasProperty(std::string propName);
27 std::string getType() const;
28 Kernel::IValidator_sptr clone() const override;
29
30protected:
31 std::string checkValidity(const std::shared_ptr<IAlgorithm> &value) const override;
32
33private:
35 std::string m_propName;
36};
37
38} // namespace API
39} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
A validator to check whether a given algorithm has a named property.
std::string m_propName
Store the property name.
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.