14#include <json/value.h>
33 unsigned int direction)
63 }
catch (std::exception &exc) {
77 }
catch (std::exception &exc) {
92 }
catch (std::exception &e) {
96 if (message.empty()) {
double value
The value of the point.
std::shared_ptr< IAlgorithm > HeldType
Typedef the held type.
std::string setValue(const std::string &value) override
Sets the value of the algorithm from a string representation.
AlgorithmProperty(const std::string &propName, Kernel::IValidator_sptr validator=Kernel::IValidator_sptr(new Kernel::NullValidator), unsigned int direction=Kernel::Direction::Input)
Constructor.
std::string setValueFromJson(const Json::Value &value) override
Sets the value of the algorithm from a Json representation.
std::string setBaseValue(const HeldType &algm)
Set the value from the algorithm pointer.
std::string value() const override
Return the algorithm as string.
std::string getDefault() const override
Get the default.
Json::Value valueAsJson() const override
Create a Json::Value from the algorithm value.
static IAlgorithm_sptr fromString(const std::string &input)
De-serialize an object from a string.
static IAlgorithm_sptr fromJson(const Json::Value &input)
De-serialize an object from a Json.
The concrete, templated class for properties.
std::string isValid() const override
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.