iCub-main
Public Member Functions | Protected Attributes | List of all members
iCub::perception::EventCallback Class Referenceabstract

An abstract class that provides basic events handling. More...

#include <nodes.h>

Public Member Functions

 EventCallback ()
 Constructor. More...
 
std::string getName () const
 Retrieve the node name. More...
 
virtual void execute (void *ptr)=0
 The callback routine. More...
 

Protected Attributes

std::string name
 

Detailed Description

An abstract class that provides basic events handling.

Definition at line 59 of file nodes.h.

Constructor & Destructor Documentation

◆ EventCallback()

EventCallback::EventCallback ( )

Constructor.

Definition at line 26 of file nodes.cpp.

Member Function Documentation

◆ execute()

virtual void iCub::perception::EventCallback::execute ( void *  ptr)
pure virtual

The callback routine.

Parameters
ptrvoid pointer at user disposal.

◆ getName()

std::string iCub::perception::EventCallback::getName ( ) const
inline

Retrieve the node name.

Returns
a string containing the node name.

Definition at line 74 of file nodes.h.

Member Data Documentation

◆ name

std::string iCub::perception::EventCallback::name
protected

Definition at line 62 of file nodes.h.


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