#include <topicPub.hpp>
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. |
rad::TopicPub::~TopicPub |
( |
| ) |
|
|
virtual |
rad::TopicPub::TopicPub |
( |
const TopicPub & |
| ) |
|
|
delete |
rad::TopicPub::TopicPub |
( |
boost::asio::io_service & |
ios, |
|
|
const std::string & |
endpoint |
|
) |
| |
virtual rad::TopicPub::~TopicPub |
( |
| ) |
|
|
virtual |
rad::TopicPub::TopicPub |
( |
const TopicPub & |
| ) |
|
|
delete |
template<typename TYPE >
size_t rad::TopicPub::Publish |
( |
const std::string & |
topic, |
|
|
const TYPE & |
buffer |
|
) |
| |
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.
size_t rad::TopicPub::PublishRaw |
( |
const std::string & |
topic, |
|
|
const std::string & |
buffer |
|
) |
| |
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: