18 #ifndef _PUBLICATION_HH_
19 #define _PUBLICATION_HH_
21 #include <boost/shared_ptr.hpp>
46 const std::string &_msgType);
113 public:
void Publish(
const google::protobuf::Message &_msg,
114 const boost::function<
void()> &_cb =
NULL);
125 public:
bool HasTransport(
const std::string &_host,
unsigned int _port);
131 private:
unsigned int id;
132 private:
static unsigned int idCounter;
133 private: std::string topic;
134 private: std::string msgType;
137 private: std::list<CallbackHelperPtr> callbacks;
140 private: std::list<NodePtr> nodes;
142 private: std::list<PublicationTransportPtr> transports;
144 private: std::vector<PublisherPtr> publishers;
146 private:
bool locallyAdvertised;