Subscriber Class Reference

A subscriber to a topic. More...

#include <transport/transport.hh>

Public Member Functions

 Subscriber (const std::string &_topic, NodePtr _node)
 Constructor. More...
 
virtual ~Subscriber ()
 Destructor. More...
 
unsigned int GetCallbackId () const
 
std::string GetTopic () const
 Get the topic name. More...
 
void SetCallbackId (unsigned int _id)
 
void Unsubscribe () const
 Unsubscribe from the topic. More...
 

Detailed Description

A subscriber to a topic.

Constructor & Destructor Documentation

◆ Subscriber()

Subscriber ( const std::string &  _topic,
NodePtr  _node 
)

Constructor.

Parameters
[in]_topicThe topic we're subscribing to
[in]_nodeThe associated node

◆ ~Subscriber()

virtual ~Subscriber ( )
virtual

Destructor.

Member Function Documentation

◆ GetCallbackId()

unsigned int GetCallbackId ( ) const

◆ GetTopic()

std::string GetTopic ( ) const

Get the topic name.

Returns
The topic name

◆ SetCallbackId()

void SetCallbackId ( unsigned int  _id)

◆ Unsubscribe()

void Unsubscribe ( ) const

Unsubscribe from the topic.


The documentation for this class was generated from the following file: