18 #ifndef _PUBLICATIONTRANSPORT_HH_ 
   19 #define _PUBLICATIONTRANSPORT_HH_ 
   21 #include <boost/function.hpp> 
   22 #include <boost/shared_ptr.hpp> 
   46                                    const std::string &_msgType);
 
   62       public: 
void AddCallback(
 
   63                   const boost::function<
void(
const std::string &)> &_cb);
 
   71       public: std::string GetTopic() 
const;
 
   75       public: std::string GetMsgType() 
const;
 
   79       private: 
void OnPublish(
const std::string &_data);
 
   82       private: std::string topic;
 
   85       private: std::string msgType;
 
   91       private: boost::function<void (const std::string &)> callback;
 
   94       private: 
static int counter;
 
transport/transport.hh 
Definition: PublicationTransport.hh:40
boost::shared_ptr< Connection > ConnectionPtr
Definition: Connection.hh:50
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.