Mantid
Loading...
Searching...
No Matches
AlgorithmRuntimeProps.cpp
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 +
10
11#include <string>
12
13namespace MantidQt::API {
15AlgorithmRuntimeProps::getProperty(const std::string &name) const noexcept {
17}
18void AlgorithmRuntimeProps::setPropertyValue(const std::string &name, const std::string &value) {
19 if (!existsProperty(name)) {
21 } else {
23 }
24}
25} // namespace MantidQt::API
double value
The value of the point.
Definition: FitMW.cpp:51
TypedValue getProperty(const std::string &name) const noexcept override
Get the value of a property.
void setPropertyValue(const std::string &name, const std::string &value) override
Set the value of a property by string N.B.
void setPropertyValue(const std::string &name, const std::string &value) override
Set the value of a property by string N.B.
bool existsProperty(const std::string &name) const override
Checks whether the named property is already in the list of managed property.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
void declareProperty(std::unique_ptr< Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
Utility class that enables the getProperty() method to effectively be templated on the return type.