38 message =
"Algorithm object contains the required property \"" +
m_propName +
39 "\" but it has an invalid value: " + p->
value();
42 message =
"Algorithm object does not have the required property \"" +
m_propName +
"\"";
double value
The value of the point.
Kernel::IValidator_sptr clone() const override
Make a copy of the present type of validator.
std::string m_propName
Store the property name.
AlgorithmHasProperty(std::string propName)
Constructor.
std::string checkValidity(const std::shared_ptr< IAlgorithm > &value) const override
Checks the value based on the validator's rules.
std::string getType() const
Get a string representation of the type.
Base class for properties.
virtual std::string isValid() const
Overridden function that checks whether the property, if not overriden returns "".
virtual std::string value() const =0
Returns the value of the property as a string.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.