18 #ifndef _PUBLICATIONTRANSPORT_HH_ 19 #define _PUBLICATIONTRANSPORT_HH_ 21 #include <boost/function.hpp> 22 #include <boost/shared_ptr.hpp> 41 public boost::enable_shared_from_this<PublicationTransport>
47 const std::string &_msgType);
63 public:
void AddCallback(
64 const boost::function<
void(
const std::string &)> &_cb);
72 public: std::string GetTopic()
const;
76 public: std::string GetMsgType()
const;
80 private:
void OnPublish(
const std::string &_data);
83 private: std::string topic;
86 private: std::string msgType;
92 private: boost::function<void (const std::string &)> callback;
95 private:
static int counter;
Forward declarations for the common classes.
Definition: Animation.hh:26
transport
Definition: ConnectionManager.hh:35
transport/transport.hh
Definition: PublicationTransport.hh:40
boost::shared_ptr< Connection > ConnectionPtr
Definition: Connection.hh:51
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.