rad
2.0.0
|
#include <subscriber.hpp>
Public Member Functions | |
SMSubscriber (const elt::mal::Uri &uri, SMAdapter &sm, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
void | Callback (elt::mal::ps::Subscriber< TOPIC_TYPE > &subscriber, const elt::mal::ps::DataEvent< TOPIC_TYPE > &event) |
SMSubscriber (const SMSubscriber &)=delete | |
SMSubscriber & | operator= (const SMSubscriber &)=delete |
SMSubscriber (const elt::mal::Uri &uri, SMAdapter &sm, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
void | Callback (elt::mal::ps::Subscriber< TOPIC_TYPE > &subscriber, const elt::mal::ps::DataEvent< TOPIC_TYPE > &event) |
SMSubscriber (const SMSubscriber &)=delete | |
SMSubscriber & | operator= (const SMSubscriber &)=delete |
SMSubscriber (const elt::mal::Uri &uri, SMAdapter &sm, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
void | Callback (elt::mal::ps::Subscriber< TOPIC_TYPE > &subscriber, const elt::mal::ps::DataEvent< TOPIC_TYPE > &event) |
SMSubscriber (const SMSubscriber &)=delete | |
SMSubscriber & | operator= (const SMSubscriber &)=delete |
![]() | |
Subscriber (const elt::mal::Uri &uri, TopicHandler_t handler, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
Subscriber (const Subscriber &)=delete | |
Subscriber & | operator= (const Subscriber &)=delete |
Subscriber (Subscriber &&rhs)=default | |
Subscriber (const elt::mal::Uri &uri, TopicHandler_t handler, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
Subscriber (const Subscriber &)=delete | |
Subscriber & | operator= (const Subscriber &)=delete |
Subscriber (Subscriber &&rhs)=default | |
Subscriber (const elt::mal::Uri &uri, TopicHandler_t handler, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
Subscriber (const Subscriber &)=delete | |
Subscriber & | operator= (const Subscriber &)=delete |
Subscriber (Subscriber &&rhs)=default | |
Additional Inherited Members | |
![]() | |
using | TopicHandler_t = std::function< void(elt::mal::ps::Subscriber< TOPIC_TYPE > &, const elt::mal::ps::DataEvent< TOPIC_TYPE > &)> |
using | TopicHandler_t = std::function< void(elt::mal::ps::Subscriber< TOPIC_TYPE > &, const elt::mal::ps::DataEvent< TOPIC_TYPE > &)> |
using | TopicHandler_t = std::function< void(elt::mal::ps::Subscriber< TOPIC_TYPE > &, const elt::mal::ps::DataEvent< TOPIC_TYPE > &)> |
This class allows to subscribe to a topic of a given type and, upon reception inject an event of type EVENT_TYPE into to the State Machine engine. The payload of the event is the same as the payload of the topic.
TOPIC_TYPE | Type of the topic that can be subscribed to. |
EVENT_TYPE | Type of the event to be triggered upon the reception of the topic. |
|
inline |
This constructor allows to register an event to be triggered every time a given topic is received.
uri | URI associated to the topic. |
sm | Reference to State Machine engine. |
mal_properties | QoS for message reception. |
|
delete |
|
inline |
This constructor allows to register an event to be triggered every time a given topic is received.
uri | URI associated to the topic. |
sm | Reference to State Machine engine. |
mal_properties | QoS for message reception. |
|
delete |
|
inline |
This constructor allows to register an event to be triggered every time a given topic is received.
uri | URI associated to the topic. |
sm | Reference to State Machine engine. |
mal_properties | QoS for message reception. |
|
delete |
|
inline |
|
inline |
|
inline |
|
delete |
|
delete |
|
delete |