Go to the documentation of this file.
21 #ifndef GAZEBO_TRANSPORT_SUBSCRIBER_HH_
22 #define GAZEBO_TRANSPORT_SUBSCRIBER_HH_
25 #include <boost/shared_ptr.hpp>
53 public:
void SetCallbackId(
unsigned int _id);
59 public:
unsigned int GetCallbackId()
const;
63 public: std::string GetTopic()
const;
66 public:
void Unsubscribe()
const;
69 private: std::string topic;
75 private:
unsigned int callbackId;
Forward declarations for the common classes.
Definition: Animation.hh:26
void Unsubscribe() const
Unsubscribe from the topic.
A subscriber to a topic.
Definition: Subscriber.hh:39
unsigned int GetCallbackId() const
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
std::string GetTopic() const
Get the topic name.
Subscriber(const std::string &_topic, NodePtr _node)
Constructor.
void SetCallbackId(unsigned int _id)
transport
Definition: ConnectionManager.hh:35
virtual ~Subscriber()
Destructor.