transport/transport.hh More...
#include <PublicationTransport.hh>
Inherits enable_shared_from_this< PublicationTransport >.
Public Member Functions | |
PublicationTransport (const std::string &_topic, const std::string &_msgType) | |
Constructor. More... | |
virtual | ~PublicationTransport () |
Destructor. More... | |
void | AddCallback (const boost::function< void(const std::string &)> &_cb) |
Add a callback to the transport. More... | |
void | Fini () |
Finalize the transport. More... | |
const ConnectionPtr | GetConnection () const |
Get the underlying connection. More... | |
std::string | GetMsgType () const |
Get the topic type. More... | |
std::string | GetTopic () const |
Get the topic name. More... | |
void | Init (const ConnectionPtr &_conn, bool _latched) |
Initialize the transport. More... | |
transport/transport.hh
Reads data from a remote advertiser, and passes the data along to local subscribers
PublicationTransport | ( | const std::string & | _topic, |
const std::string & | _msgType | ||
) |
Constructor.
[in] | _topic | Topic that we're publishing |
[in] | _topic | Type of the topic that we're publishing |
|
virtual |
Destructor.
void AddCallback | ( | const boost::function< void(const std::string &)> & | _cb | ) |
Add a callback to the transport.
[in] | _cb | The callback to be added |
void Fini | ( | ) |
Finalize the transport.
const ConnectionPtr GetConnection | ( | ) | const |
Get the underlying connection.
std::string GetMsgType | ( | ) | const |
Get the topic type.
std::string GetTopic | ( | ) | const |
Get the topic name.
void Init | ( | const ConnectionPtr & | _conn, |
bool | _latched | ||
) |
Initialize the transport.
[in] | _conn | The underlying connection. |
[in] | _latched | True to grab the last message sent on the topic. |