18 #ifndef _PUBLICATIONTRANSPORT_HH_
19 #define _PUBLICATIONTRANSPORT_HH_
21 #include <boost/shared_ptr.hpp>
45 const std::string &_msgType);
61 public:
void AddCallback(
62 const boost::function<
void(
const std::string &)> &_cb);
70 public: std::string GetTopic()
const;
74 public: std::string GetMsgType()
const;
78 private:
void OnPublish(
const std::string &_data);
81 private: std::string topic;
84 private: std::string msgType;
90 private: boost::function<void (const std::string &)> callback;
93 private:
static int counter;
boost::shared_ptr< Connection > ConnectionPtr
Definition: Connection.hh:50
transport/transport.hh
Definition: PublicationTransport.hh:39
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48