RTC Toolkit
2.0.0
|
Interface class for subscribing to JSON events. More...
#include <eventServiceIf.hpp>
Public Member Functions | |
virtual | ~EventSubscriberIf ()=default |
virtual void | Subscribe (std::function< void(JsonPayload const &)> cb)=0 |
Subscribes to a specified topic. More... | |
virtual void | Unsubscribe ()=0 |
Unsubscribes from a specified topic. More... | |
Interface class for subscribing to JSON events.
|
virtualdefault |
|
pure virtual |
Subscribes to a specified topic.
Only a single callback can be registered per subscriber.
[in] | cb | The callback returning the JSON object. |
Implemented in rtctk::componentFramework::MalDdsEventSubscriber.
|
pure virtual |
Unsubscribes from a specified topic.
Implemented in rtctk::componentFramework::MalDdsEventSubscriber.