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 +
9
10#include <string>
11
12namespace Mantid::API {
16void AlgorithmRuntimeProps::setPropertyValue(const std::string &name, const std::string &value) {
17 if (!existsProperty(name)) {
19 } else {
21 }
22}
23} // namespace Mantid::API
std::string name
Definition Run.cpp:60
double value
The value of the point.
Definition FitMW.cpp:51
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
void setPropertyValue(const std::string &name, const std::string &value) override
Sets property value from a string.
TypedValue getProperty(const std::string &name) const 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.
bool existsProperty(const std::string &name) const override
Checks whether the named property is already in the list of managed 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.