#include <helpers.hpp>
|
void | Subscribe (std::function< void(const JsonPayload &)> cb) override |
| Subscribes to a specified topic.
|
|
| MOCK_METHOD (void, SubscribeMock,(std::function< void(const JsonPayload &)>),()) |
|
| MOCK_METHOD (void, Unsubscribe,(),(override)) |
|
void | Subscribe (std::function< void(const JsonPayload &)> cb) override |
| Subscribes to a specified topic.
|
|
| MOCK_METHOD (void, SubscribeMock,(std::function< void(const JsonPayload &)>),()) |
|
| MOCK_METHOD (void, Unsubscribe,(),(override)) |
|
std::function< void(const JsonPayload &)> | GetCallback () |
|
virtual | ~EventSubscriberIf ()=default |
|
virtual void | Unsubscribe ()=0 |
| Unsubscribes from a specified topic.
|
|
◆ GetCallback()
◆ MOCK_METHOD() [1/4]
◆ MOCK_METHOD() [2/4]
◆ MOCK_METHOD() [3/4]
◆ MOCK_METHOD() [4/4]
◆ Subscribe() [1/2]
Subscribes to a specified topic.
Only a single callback can be registered per subscriber.
- Note
- Do not Publish, Subscribe or Unsubscribe from within the subscrption callback, this will lead to deadlocks!!!
- Parameters
-
[in] | cb | The callback returning the JSON object. |
Implements rtctk::componentFramework::EventSubscriberIf.
◆ Subscribe() [2/2]
Subscribes to a specified topic.
Only a single callback can be registered per subscriber.
- Note
- Do not Publish, Subscribe or Unsubscribe from within the subscrption callback, this will lead to deadlocks!!!
- Parameters
-
[in] | cb | The callback returning the JSON object. |
Implements rtctk::componentFramework::EventSubscriberIf.
◆ GetCallback
◆ MockEventService
The documentation for this class was generated from the following files: