All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
gazebo::transport::CallbackHelper Class Referenceabstract

A helper class to handle callbacks when messages arrive. More...

#include <transport/transport.hh>

Inheritance diagram for gazebo::transport::CallbackHelper:
Inheritance graph
[legend]

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
 

Detailed Description

A helper class to handle callbacks when messages arrive.

Constructor & Destructor Documentation

gazebo::transport::CallbackHelper::CallbackHelper ( )
inline

Constructor.

virtual gazebo::transport::CallbackHelper::~CallbackHelper ( )
inlinevirtual

Destructor.

Member Function Documentation

bool gazebo::transport::CallbackHelper::GetLatching ( ) const
inline

Is the callback latching?

Returns
true if the callback is latching, false otherwise

References latching.

virtual std::string gazebo::transport::CallbackHelper::GetMsgType ( ) const
inlinevirtual

Get the typename of the message that is handled.

Returns
String representation of the message type

Reimplemented in gazebo::transport::DebugCallbackHelper, and gazebo::transport::CallbackHelperT< M >.

virtual bool gazebo::transport::CallbackHelper::HandleData ( const std::string &  _newdata)
pure virtual

Process new incoming data.

Parameters
[in]_newdataIncoming data to be processed
Returns
true if successfully processed; false otherwise

Implemented in gazebo::transport::DebugCallbackHelper, gazebo::transport::CallbackHelperT< M >, and gazebo::transport::SubscriptionTransport.

virtual bool gazebo::transport::CallbackHelper::IsLocal ( ) const
pure virtual

Is the callback local?

Returns
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.

Member Data Documentation

bool gazebo::transport::CallbackHelper::latching
protected

Referenced by GetLatching().


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