A helper class to handle callbacks when messages arrive.
More...
#include <transport/transport.hh>
|
| CallbackHelper (bool _latching=false) |
| Constructor.
|
|
virtual | ~CallbackHelper () |
| Destructor.
|
|
unsigned int | GetId () const |
| Get the unique ID of this callback.
|
|
bool | GetLatching () const |
| Is the callback latching?
|
|
virtual std::string | GetMsgType () const |
| Get the typename of the message that is handled.
|
|
virtual bool | HandleData (const std::string &_newdata)=0 |
| Process new incoming data.
|
|
virtual bool | IsLocal () const =0 |
| Is the callback local?
|
|
|
bool | latching |
| True means that the callback helper will get the last published message on the topic.
|
|
A helper class to handle callbacks when messages arrive.
gazebo::transport::CallbackHelper::CallbackHelper |
( |
bool |
_latching = false | ) |
|
Constructor.
- Parameters
-
[in] | _latching | Set to true to make the callback helper latching. |
virtual gazebo::transport::CallbackHelper::~CallbackHelper |
( |
| ) |
|
|
virtual |
unsigned int gazebo::transport::CallbackHelper::GetId |
( |
| ) |
const |
Get the unique ID of this callback.
- Returns
- The unique ID of this callback.
bool gazebo::transport::CallbackHelper::GetLatching |
( |
| ) |
const |
Is the callback latching?
- Returns
- true if the callback is latching, false otherwise
virtual std::string gazebo::transport::CallbackHelper::GetMsgType |
( |
| ) |
const |
|
virtual |
virtual bool gazebo::transport::CallbackHelper::HandleData |
( |
const std::string & |
_newdata | ) |
|
|
pure virtual |
virtual bool gazebo::transport::CallbackHelper::IsLocal |
( |
| ) |
const |
|
pure virtual |
bool gazebo::transport::CallbackHelper::latching |
|
protected |
True means that the callback helper will get the last published message on the topic.
The documentation for this class was generated from the following file: