21 #include <unity/scopes/FilterBase.h> 22 #include <unity/scopes/Variant.h> 23 #include <unity/scopes/FilterGroup.h> 35 class RangeInputFilterImpl;
64 static RangeInputFilter::SPtr create(std::string
const&
id,
65 std::string
const& start_prefix_label, std::string
const& start_postfix_label,
66 std::string
const& central_label,
67 std::string
const& end_prefix_label, std::string
const& end_postfix_label);
81 static RangeInputFilter::SPtr create(std::string
const&
id,
82 Variant const& default_start_value,
83 Variant const& default_end_value,
84 std::string
const& start_prefix_label, std::string
const& start_postfix_label,
85 std::string
const& central_label,
86 std::string
const& end_prefix_label, std::string
const& end_postfix_label);
99 static RangeInputFilter::SPtr create(std::string
const&
id,
100 std::string
const& start_prefix_label, std::string
const& start_postfix_label,
101 std::string
const& central_label,
102 std::string
const& end_prefix_label, std::string
const& end_postfix_label, FilterGroup::SCPtr
const& group);
117 static RangeInputFilter::SPtr create(std::string
const&
id,
118 Variant const& default_start_value,
119 Variant const& default_end_value,
120 std::string
const& start_prefix_label, std::string
const& start_postfix_label,
121 std::string
const& central_label,
122 std::string
const& end_prefix_label, std::string
const& end_postfix_label,
123 FilterGroup::SCPtr
const& group);
129 std::string start_prefix_label()
const;
135 std::string start_postfix_label()
const;
141 std::string end_prefix_label()
const;
147 std::string end_postfix_label()
const;
153 std::string central_label()
const;
162 Variant default_start_value()
const;
171 Variant default_end_value()
const;
179 bool has_start_value(
FilterState const& filter_state)
const;
187 bool has_end_value(
FilterState const& filter_state)
const;
195 double start_value(
FilterState const& filter_state)
const;
203 double end_value(
FilterState const& filter_state)
const;
231 static void update_state(
FilterState& filter_state, std::string
const& filter_id,
Variant const& start_value,
Variant const& end_value);
235 internal::RangeInputFilterImpl* fwd()
const;
236 friend class internal::RangeInputFilterImpl;
Simple variant class that can hold an integer, boolean, string, double, dictionary, array or null value.
Definition: Variant.h:57
Base class for all implementations of filters.
Definition: FilterBase.h:47
Top-level namespace for all things Unity-related.
Definition: Version.h:49
Definition: ActionMetadata.h:31
Stores the state of multiple filters.
Definition: FilterState.h:46