A helper class to handle callbacks when messages arrive. More...
#include <transport/transport.hh>

Public Member Functions | |
| CallbackHelper () | |
| Constructor. | |
| virtual | ~CallbackHelper () |
| Destructor. | |
| 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? | |
Protected Attributes | |
| bool | latching |
A helper class to handle callbacks when messages arrive.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Is the callback latching?
References latching.
|
inlinevirtual |
Get the typename of the message that is handled.
Reimplemented in gazebo::transport::DebugCallbackHelper, and gazebo::transport::CallbackHelperT< M >.
|
pure virtual |
Process new incoming data.
| [in] | _newdata | Incoming data to be processed |
Implemented in gazebo::transport::DebugCallbackHelper, gazebo::transport::CallbackHelperT< M >, and gazebo::transport::SubscriptionTransport.
|
pure virtual |
Is the callback local?
Implemented in gazebo::transport::DebugCallbackHelper, gazebo::transport::CallbackHelperT< M >, and gazebo::transport::SubscriptionTransport.
|
protected |
Referenced by GetLatching().