Dev Essential  1.6.3
Loading...
Searching...
No Matches
periodic_trigger.h
Go to the documentation of this file.
1
13
14#ifndef PERIODIC_TRIGGER_HEADER
15#define PERIODIC_TRIGGER_HEADER
16
17#include <a_util/result.h>
19
20namespace ddl {
21namespace mapping {
22namespace rt {
25public:
32 PeriodicTrigger(IMappingEnvironment& env, const std::string& trigger_name, double period);
33
38
43
51
58
59private: // IPeriodicListener
61 void onTimer(timestamp_t now);
62
63private:
65 std::string _name;
66 double _period;
67 bool _running;
69};
70
71} // namespace rt
72} // namespace mapping
73} // namespace ddl
74#endif // PERIODIC_TRIGGER_HEADER
Definition result_type_decl.h:34
Definition mapping_environment_intf.h:56
Timer interface class.
Definition mapping_environment_intf.h:40
virtual void onTimer(timestamp_t now)=0
PeriodicTrigger(IMappingEnvironment &env, const std::string &trigger_name, double period)
a_util::result::Result stop()
a_util::result::Result create()
a_util::result::Result start()
base class representing a trigger
Definition trigger.h:24
std::int64_t timestamp_t
Type of a timestamp value. If not otherwise stated, always in microseconds.
Definition types.h:31
definition of the rt namespace for mapping
Definition ddl.h:59
definition of the mapping namespace
Definition ddl.h:50
definition of the ddl namespace
Definition codec.h:21