|
ADTF
|
Alias always bringing the latest version of ant::IEventSink into scope. More...
#include <event_source_intf.h>
Public Member Functions | |
| ADTF_IID (IEventSink, "event_sink.ant.ucom.adtf.iid") | |
| virtual tResult | HandleEvent (const IEventSource &oSource, const void *pvEventData)=0 |
Protected Member Functions | |
| ~IEventSink ()=default | |
| Protected destructor --> Only the final implementation can be destroyed! | |
Alias always bringing the latest version of ant::IEventSink into scope.
The class IEventSink provides a generic event listener interface for Internal Events.
| adtf::ucom::ant::IEventSink::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.