49 using Ptr = std::shared_ptr<Parameter>;
50 using Vector = std::vector<Ptr>;
52 Parameter(std::string name, Tools::DValue::Ptr value,
bool editable);
55 ParameterType get_parameter_type()
const {
return parameter_type_; }
56 std::string get_name()
const {
return name_; }
57 std::string get_error()
const {
return error_; }
58 bool get_editable()
const {
return editable_; }
59 Tools::DValue::Ptr& get_value()
66 auto& var = field_position_;
69 std::string get_related_action()
const {
return related_action_; }
70 Query::Condition<Ptr>::Ptr& get_condition()
72 auto& var = condition_;
76 void set_parameter_type(ParameterType parameter_type) { parameter_type_ = parameter_type; }
77 void set_name(std::string name) { name_ = name; }
78 void set_error(std::string error) { error_ = error; }
79 void set_editable(
bool editable) { editable_ = editable; }
80 void set_value(Tools::DValue::Ptr value) { value_ = value; }
81 void set_related_action(std::string related_action) { related_action_ = related_action; }
83 std::string ToString_();
84 std::string& StringValue_();
88 void SetupCondition_(std::string identifier, Query::ConditionType type, Query::Condition<Ptr>::Functor functor);
91 ParameterType parameter_type_;
95 Tools::DValue::Ptr value_;
97 std::string related_action_;
98 Query::Condition<Ptr>::Ptr condition_;