ADTF
Loading...
Searching...
No Matches
data_trigger.h
Go to the documentation of this file.
1
13
14#ifndef DATA_TRIGGER_HEADER
15#define DATA_TRIGGER_HEADER
16
18
19namespace ddl {
20namespace mapping {
21namespace rt {
40
42class DataTrigger : public TriggerBase {
43public:
53 const std::string& trigger_name,
54 const std::string& variable_name,
55 const std::string& comp_operator,
56 const double& value);
57
62
70
77
84
90 bool compare(double value);
91
95 const std::string& getVariable() const;
96
97private:
99 std::string _name;
100 std::string _variable_name;
101 Operator _operator;
102 double _value;
103 bool _is_running;
104};
105
106} // namespace rt
107} // namespace mapping
108} // namespace ddl
109#endif // DATA_TRIGGER_HEADER
Definition result_type_decl.h:34
a_util::result::Result transmit()
DataTrigger(IMappingEnvironment &env, const std::string &trigger_name, const std::string &variable_name, const std::string &comp_operator, const double &value)
a_util::result::Result start()
const std::string & getVariable() const
bool compare(double value)
a_util::result::Result stop()
Definition mapping_environment_intf.h:56
base class representing a trigger
Definition trigger.h:24
definition of the rt namespace for mapping
Definition ddl.h:59
Operator
the operator set within the config
Definition data_trigger.h:26
@ e_greater_than_equal
greater or equal op
Definition data_trigger.h:38
@ e_not_equal
not equal op
Definition data_trigger.h:30
@ e_less_than
less op
Definition data_trigger.h:32
@ e_equal
equal op
Definition data_trigger.h:28
@ e_greater_than
greater op
Definition data_trigger.h:34
@ e_less_than_equal
less or equal op
Definition data_trigger.h:36
definition of the mapping namespace
Definition ddl.h:50
definition of the ddl namespace
Definition codec.h:21