|
rad 6.2.0
|
#include <smSubscriber.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 |
Public Member Functions inherited from rad::cii::Subscriber< TOPIC_TYPE > | |
| 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 | |
Public Types inherited from rad::cii::Subscriber< TOPIC_TYPE > | |
| using | TopicHandler_t |
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 |
|
delete |