#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)) |
| |
| std::function< void(const JsonPayload &)> | GetCallback () |
| |
| 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() [1/2]
| std::function< void(const JsonPayload &)> MockEventSubscriber::GetCallback |
( |
| ) |
|
|
inline |
◆ GetCallback() [2/2]
| std::function< void(const JsonPayload &)> MockEventSubscriber::GetCallback |
( |
| ) |
|
|
inline |
◆ MOCK_METHOD() [1/4]
| MockEventSubscriber::MOCK_METHOD |
( |
void | , |
|
|
SubscribeMock | , |
|
|
(std::function< void(const JsonPayload &)>) | , |
|
|
() | ) |
◆ MOCK_METHOD() [2/4]
| MockEventSubscriber::MOCK_METHOD |
( |
void | , |
|
|
SubscribeMock | , |
|
|
(std::function< void(const JsonPayload &)>) | , |
|
|
() | ) |
◆ MOCK_METHOD() [3/4]
| MockEventSubscriber::MOCK_METHOD |
( |
void | , |
|
|
Unsubscribe | , |
|
|
() | , |
|
|
(override) | ) |
◆ MOCK_METHOD() [4/4]
| MockEventSubscriber::MOCK_METHOD |
( |
void | , |
|
|
Unsubscribe | , |
|
|
() | , |
|
|
(override) | ) |
◆ Subscribe() [1/2]
| void MockEventSubscriber::Subscribe |
( |
std::function< void(const JsonPayload &)> | cb | ) |
|
|
inlineoverridevirtual |
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]
| void MockEventSubscriber::Subscribe |
( |
std::function< void(const JsonPayload &)> | cb | ) |
|
|
inlineoverridevirtual |
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.
◆ MockEventService
The documentation for this class was generated from the following files: