|
RTC Toolkit 5.1.0
|
An event subscriber that is aware of event types. More...
#include <rtctk/componentFramework/typedEventService.hpp>
Public Member Functions | |
| ~TypedEventSubscriber () | |
| void | Subscribe (std::function< void(const EventType &)> cb) |
| Subscribes to an event of a specific type. | |
| void | Unsubscribe () |
| Unsubscribes from a specified event type. | |
Public Attributes | |
| friend | TypedEventService |
An event subscriber that is aware of event types.
| EventType | The event type. |
|
inline |
Subscribes to an event of a specific type.
| [in] | cb | The callback with the event object. |
|
inline |
Unsubscribes from a specified event type.
| friend rtctk::componentFramework::TypedEventSubscriber< EventType >::TypedEventService |