Mantid
Loading...
Searching...
No Matches
Framework
API
inc
MantidAPI
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"
10
#include "
MantidKernel/TypedValidator.h
"
11
12
namespace
Mantid
{
13
namespace
API
{
14
15
class
IAlgorithm;
16
24
class
MANTID_API_DLL
AlgorithmHasProperty
:
public
Kernel::TypedValidator<std::shared_ptr<IAlgorithm>> {
25
public
:
26
AlgorithmHasProperty
(std::string propName);
27
std::string getType()
const
;
28
Kernel::IValidator_sptr
clone()
const override
;
29
30
protected
:
31
std::string checkValidity(
const
std::shared_ptr<IAlgorithm> &
value
)
const override
;
32
33
private
:
35
std::string
m_propName
;
36
};
37
38
}
// namespace API
39
}
// namespace Mantid
value
double value
The value of the point.
Definition
FitMW.cpp:51
TypedValidator.h
Mantid::API::AlgorithmHasProperty
A validator to check whether a given algorithm has a named property.
Definition
AlgorithmHasProperty.h:24
Mantid::API::AlgorithmHasProperty::m_propName
std::string m_propName
Store the property name.
Definition
AlgorithmHasProperty.h:35
API
Definition
ChudleyElliotSQE.h:11
Mantid::Kernel::IValidator_sptr
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition
IValidator.h:26
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8