#include <topicPub.hpp>
◆ TopicPub() [1/4]
rad::TopicPub::TopicPub |
( |
boost::asio::io_service & |
ios, |
|
|
const std::string & |
endpoint |
|
) |
| |
- Parameters
-
[in] | ios | Reference to an event loop. |
[in] | endpoint | Address where to publish the topic. |
◆ ~TopicPub() [1/2]
rad::TopicPub::~TopicPub |
( |
| ) |
|
|
virtual |
◆ TopicPub() [2/4]
rad::TopicPub::TopicPub |
( |
const TopicPub & |
| ) |
|
|
delete |
◆ TopicPub() [3/4]
rad::TopicPub::TopicPub |
( |
boost::asio::io_service & |
ios, |
|
|
const std::string & |
endpoint |
|
) |
| |
◆ ~TopicPub() [2/2]
virtual rad::TopicPub::~TopicPub |
( |
| ) |
|
|
virtual |
◆ TopicPub() [4/4]
rad::TopicPub::TopicPub |
( |
const TopicPub & |
| ) |
|
|
delete |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Publish() [1/2]
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.
◆ Publish() [2/2]
template<typename TYPE >
size_t rad::TopicPub::Publish |
( |
const std::string & |
topic, |
|
|
const TYPE & |
buffer |
|
) |
| |
◆ PublishRaw() [1/2]
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.
◆ PublishRaw() [2/2]
size_t rad::TopicPub::PublishRaw |
( |
const std::string & |
topic, |
|
|
const std::string & |
buffer |
|
) |
| |
The documentation for this class was generated from the following files: