48 #include "../Text/TextTools.h" 49 #include "../App/ApplicationTools.h" 55 string AutoParameter::CONSTRAINTS_AUTO =
"auto";
56 string AutoParameter::CONSTRAINTS_IGNORE =
"ignore";
57 string AutoParameter::CONSTRAINTS_KEEP =
"keep";
62 Parameter(name, value, constraint, attachConstraint), messageHandler_(ApplicationTools::message) {}
89 (*messageHandler_) <<
"Constraint match at parameter ";
90 (*messageHandler_) << name_;
91 (*messageHandler_) <<
", badValue = ";
93 (*messageHandler_) <<
" ";
94 (*messageHandler_ << constraint_->getDescription()).endLine();
96 double limit = constraint_->getAcceptedLimit(value);
This class allows to perform a correspondence analysis.
AutoParameter & operator=(const AutoParameter ¶m)
Assignment operator.
This class is designed to facilitate the manipulation of parameters.
AutoParameter(const std::string &name="", double value=0, Constraint *constraint=0, bool attachConstraint=false)
Build a new AutoParameter.
virtual double getBadValue() const
Get the value that doesn't match the constraint.
OutputStream * messageHandler_
virtual void setValue(double value)
Set the value of this parameter.
The constraint interface.
Exception thrown when a value do not match a given constraint.
Parameter & operator=(const Parameter ¶m)
Assignment operator.
virtual void setValue(double value)
Set the value of this parameter.