ADTF  3.18.3
trigger.h
Go to the documentation of this file.
1 
14 #ifndef TRIGGER_BASE_HEADER
15 #define TRIGGER_BASE_HEADER
16 
17 #include <a_util/result.h>
19 
20 namespace ddl {
21 namespace mapping {
22 namespace rt {
24 class TriggerBase {
25 public:
29  virtual ~TriggerBase();
30 
38 
45 
46 public: // Base implementations
52 
59 
66 
67 protected:
70 };
71 
76 typedef std::map<std::string, TriggerBase*> TriggerMap;
77 
78 } // namespace rt
79 } // namespace mapping
80 } // namespace ddl
81 #endif // TRIGGER_BASE_HEADER
A common result class usable as return value throughout.
Target represents a mapped target signal in the runtime api.
Definition: target.h:34
base class representing a trigger
Definition: trigger.h:24
TargetSet _targets
nodoc
Definition: trigger.h:69
TargetSet & getTargetList()
Getter for the list of registered targets.
virtual ~TriggerBase()
Virtual DTOR.
virtual a_util::result::Result stop()=0
Method to stop trigger.
a_util::result::Result removeTarget(Target *target)
Method to deregister a target.
virtual a_util::result::Result start()=0
Method to start trigger.
a_util::result::Result addTarget(Target *target)
Method to register a new target.
std::map< std::string, TriggerBase * > TriggerMap
type for trigger map.
Definition: trigger.h:76
std::set< Target * > TargetSet
the targets pointer list
Definition: target.h:187
Common include for component a_util::result.