11#include <json/value.h>
24 m_optional(optional) {}
78 m_value = std::shared_ptr<IFunction>();
86 }
catch (std::exception &e) {
101 }
catch (std::exception &exc) {
114 return isDefault() ?
"Function is empty." :
"";
double value
The value of the point.
A property class for functions.
std::string setValue(const std::string &value) override
Set the value of the property.
std::string m_definition
The function definition string (as used by the FunctionFactory)
std::string value() const override
Get the function definition string.
Json::Value valueAsJson() const override
Return a Json::Value object encoding the function string.
PropertyMode::Type m_optional
A flag indicating whether the property should be considered optional.
std::string isValid() const override
Checks whether the entered function is valid.
FunctionProperty & operator+=(Kernel::Property const *) override
Add the value of another property.
bool isDefault() const override
Is default.
std::string setValueFromJson(const Json::Value &value) override
Set the value of the property as a Json representation.
FunctionProperty(const std::string &name, const unsigned int direction=Kernel::Direction::Input, const PropertyMode::Type optional=PropertyMode::Type::Mandatory)
Constructor.
std::string getDefault() const override
Get the value the property was initialised with -its default value.
FunctionProperty & operator=(const FunctionProperty &right)=default
Copy assignment operator.
const Kernel::PropertyHistory createHistory() const override
Create a history record.
bool isOptional() const
Return true if the property is optional.
This is an interface to a fitting function - a semi-abstarct class.
Marks code as not implemented yet.
NullValidator is a validator that doesn't.
This class stores information about the parameters used by an algorithm.
The concrete, templated class for properties.
std::shared_ptr< IFunction > m_value
The value of the property.
Base class for properties.
unsigned int direction() const
returns the direction of the property
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
@ Output
An output workspace.