RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::DataHandler< DataType > Class Template Referenceabstract

A Handler that automatically performs the desired type casting. More...

#include <Handler.h>

Inheritance diagram for rsb::DataHandler< DataType >:
Inheritance graph
Collaboration diagram for rsb::DataHandler< DataType >:
Collaboration graph

Public Member Functions

virtual ~DataHandler ()
 
void handle (EventPtr event)
 Handle event. More...
 
virtual void notify (boost::shared_ptr< DataType > data)=0
 
- Public Member Functions inherited from rsb::Handler
std::set< std::string > getMethods () const
 Returns the desired set of methods this handler can handle. More...
 
bool acceptsMethod (const std::string &method) const
 

Additional Inherited Members

- Protected Member Functions inherited from rsb::Handler
 Handler (const std::string &method="")
 Creates a new handler that only accepts events for the specified method. More...
 
 Handler (const std::set< std::string > &methods)
 Creates a new handler that only accepts events with the specified methods. More...
 
virtual ~Handler ()
 
std::string getClassName () const
 

Detailed Description

template<class DataType>
class rsb::DataHandler< DataType >

A Handler that automatically performs the desired type casting.

Author
jwienke
Template Parameters
DataTypetype of the data received by this handler, omitting the shared pointer

Definition at line 157 of file Handler.h.

Constructor & Destructor Documentation

template<class DataType >
virtual rsb::DataHandler< DataType >::~DataHandler ( )
inlinevirtual

Definition at line 159 of file Handler.h.

Member Function Documentation

template<class DataType >
void rsb::DataHandler< DataType >::handle ( EventPtr  event)
inlinevirtual

Handle event.

Parameters
eventThe event that should be handled.

Implements rsb::eventprocessing::Handler.

Definition at line 162 of file Handler.h.

References rsb::DataHandler< DataType >::notify().

Here is the call graph for this function:

template<class DataType >
virtual void rsb::DataHandler< DataType >::notify ( boost::shared_ptr< DataType >  data)
pure virtual

Referenced by rsb::DataHandler< DataType >::handle().

Here is the caller graph for this function:


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