Mantid
Loading...
Searching...
No Matches
AlgorithmRuntimeProps.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 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
13
14namespace Mantid::API {
15class MANTID_API_DLL AlgorithmRuntimeProps final : private Mantid::Kernel::PropertyManager,
17public:
21
22 bool operator==(const Mantid::Kernel::IPropertyManager &other) override = delete;
26
27 TypedValue getProperty(const std::string &name) const override;
28 void setPropertyValue(const std::string &name, const std::string &value) override;
29};
30
31} // namespace Mantid::API
std::string name
Definition Run.cpp:60
double value
The value of the point.
Definition FitMW.cpp:51
AlgorithmRuntimeProps(AlgorithmRuntimeProps &&)=default
AlgorithmRuntimeProps(const AlgorithmRuntimeProps &)=default
bool operator==(const Mantid::Kernel::IPropertyManager &other) override=delete
Interface to PropertyManager.
Property manager helper class.
bool existsProperty(const std::string &name) const override
Checks whether the named property is already in the list of managed property.
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
std::vector< std::string > getDeclaredPropertyNames() const noexcept override
Return the list of declared property names.
Utility class that enables the getProperty() method to effectively be templated on the return type.