|
rad 6.2.0
|
#include <publisher.hpp>
Public Member Functions | |
| Publisher (const elt::mal::Uri &uri, const std::optional< elt::mal::Mal::Properties > mal_properties={}) | |
| ~Publisher () | |
| std::shared_ptr< TOPIC_TYPE > | CreateTopic () const |
| std::shared_ptr<::elt::mal::Mal > | GetMal () const |
| template<class T > | |
| std::shared_ptr< T > | CreateDataEntity () const |
| void | Publish (const TOPIC_TYPE &topic) |
| Publisher (const Publisher &)=delete | |
| Publisher & | operator= (const Publisher &)=delete |
This class can be used to publish topics of a given type.
| TOPIC_TYPE | Type of the topic to be published. |
TOPIC_TYPE = defined in the interface TOPIC_NAME = defined in the URI
|
inlineexplicit |
This constructor creates a publisher for a given topic type.
| uri | Topic URI. |
| mal_properties | QoS for the topic. |
|
inline |
Destructor.
|
delete |
|
inline |
Create data entity using the underlying publisher.
|
inline |
This method creates a topic from a given topic type.
| TOPIC_TYPE | Type of the topic. |
|
inline |
|
delete |
|
inline |
This method publishes a given topic.
| topic | Topic to publish. |