#include <topicPub.hpp>
◆ TopicPub() [1/2]
rad::TopicPub::TopicPub |
( |
boost::asio::io_context & | ios, |
|
|
const std::string & | endpoint ) |
- Parameters
-
[in] | ios | Reference to an event loop. |
[in] | endpoint | Address where to publish the topic. |
◆ ~TopicPub()
rad::TopicPub::~TopicPub |
( |
| ) |
|
|
virtual |
◆ TopicPub() [2/2]
rad::TopicPub::TopicPub |
( |
const TopicPub & | | ) |
|
|
delete |
◆ operator=()
◆ Publish()
template<typename TYPE >
size_t rad::TopicPub::Publish |
( |
const std::string & | topic, |
|
|
const TYPE & | buffer ) |
- Parameters
-
[in] | topic | Topic to publish. |
[in] | buffer | Topic's payload in ProtBuf format. |
- Returns
- The number of bytes published.
◆ PublishRaw()
size_t rad::TopicPub::PublishRaw |
( |
const std::string & | topic, |
|
|
const std::string & | buffer ) |
Publish a topic.
- Parameters
-
[in] | topic | Name of the topic. |
[in] | buffer | Content of the topic. |
- Returns
- The number of bytes published.
The documentation for this class was generated from the following files: