Reads data from a remote advertiser, and passes the data along to local subscribers.
More...
#include <PublicationTransport.hh>
Reads data from a remote advertiser, and passes the data along to local subscribers.
transport/transport.hh
◆ PublicationTransport()
Constructor.
- Parameters
-
[in] | _topic | Topic that we're publishing |
[in] | _topic | Type of the topic that we're publishing |
◆ ~PublicationTransport()
◆ AddCallback()
void AddCallback |
( |
const boost::function< void(const std::string &)> & |
_cb | ) |
|
Add a callback to the transport.
- Parameters
-
[in] | _cb | The callback to be added |
◆ Fini()
◆ GetConnection()
Get the underlying connection.
- Returns
- Pointer to the underlying connection
◆ GetMsgType()
std::string GetMsgType |
( |
| ) |
const |
Get the topic type.
- Returns
- The topic type
◆ GetTopic()
std::string GetTopic |
( |
| ) |
const |
Get the topic name.
- Returns
- The topic name
◆ Init()
Initialize the transport.
- Parameters
-
[in] | _conn | The underlying connection. |
[in] | _latched | True to grab the last message sent on the topic. |
The documentation for this class was generated from the following file: