ADTF  3.18.2
event_source.h
Go to the documentation of this file.
1 
8 #ifndef _UCOM_EVENTSOURCE_CLASS_HEADER_
9 #define _UCOM_EVENTSOURCE_CLASS_HEADER_
10 
11 namespace adtf
12 {
13 
14 namespace ucom
15 {
16 
17 namespace ant
18 {
19 
30 class DOEXPORT cEventSource : public catwo::object<IEventSource>
31 {
32  private:
33  std::vector<IEventSink*> m_oEventSinks;
34 
35  public:
36  cEventSource() = default;
37  virtual ~cEventSource() = default;
38 
49  tResult FireEvent(const void* pvEventData) const;
50 
51  public: // implement IEventSource
52  tResult RegisterEventSink(IEventSink& oEventSink);
53  tResult UnregisterEventSink(IEventSink& oEventSink);
54 };
55 
56 }
57 
58 using ant::cEventSource;
59 
60 }
61 
62 }
63 
64 #endif // _UCOM_EVENTSOURCE_CLASS_HEADER_
The class IEventSink provides a generic event listener interface for Internal Events.
The class cEventSource provides a basic implementation of IEventSource and wraps code to manage lists...
Definition: event_source.h:31
tResult FireEvent(const void *pvEventData) const
Fire event.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an e...
Definition: object.h:379
Namespace for entire ADTF SDK.