ADTF
|
The class IEventSink provides a generic event listener interface for Internal Events. More...
Public Member Functions | |
ADTF_IID (IEventSink, "event_sink.ant.ucom.adtf.iid") | |
Marks the IEventSink to be castable with the ucom_cast<> More... | |
virtual tResult | HandleEvent (const IEventSource &oSource, const void *pvEventData)=0 |
Handle event. More... | |
Protected Member Functions | |
~IEventSink ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The class IEventSink provides a generic event listener interface for Internal Events.
Definition at line 26 of file event_source_intf.h.
ADTF_IID | ( | IEventSink | , |
"event_sink.ant.ucom.adtf.iid" | |||
) |
Marks the IEventSink
to be castable with the ucom_cast<>
|
pure virtual |
Handle event.
The HandleEvent method is called by the event source for all registered event sinks to handle event data.
[in] | oSource | Pointer to calling event source interface. |
[in] | pvEventData | Pointer to event specific data. |
IMPORTANT: Keen in mind that HandleEvent may be called from different threads. If you are sure that the event you want to handle comes only from one thread and/or you use only local members and other threadsafe methods, nothing must be done. Otherwise the critical code must be protected.