A helper class to handle callbacks when messages arrive. More...
#include <CallbackHelper.hh>
Public Member Functions | |
CallbackHelper () | |
virtual | ~CallbackHelper () |
bool | GetLatching () const |
virtual std::string | GetMsgType () const |
Get the typename of the message that is handled. | |
virtual bool | HandleData (const std::string &newdata)=0 |
virtual bool | IsLocal () const =0 |
Return true if the callback is local, false if the callback is tied to a remote connection. | |
Protected Attributes | |
bool | latching |
A helper class to handle callbacks when messages arrive.
|
inline |
|
inlinevirtual |
|
inline |
References latching.
|
inlinevirtual |
Get the typename of the message that is handled.
Reimplemented in gazebo::transport::DebugCallbackHelper, and gazebo::transport::CallbackHelperT< M >.
|
pure virtual |
|
pure virtual |
Return true if the callback is local, false if the callback is tied to a remote connection.
Implemented in gazebo::transport::DebugCallbackHelper, gazebo::transport::CallbackHelperT< M >, and gazebo::transport::SubscriptionTransport.
|
protected |
Referenced by GetLatching().