RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::FilteringHandler Class Reference

A utility class that forwards events to another rsb::Handler object if they match a given rsb::filter::Filter. More...

#include <Handler.h>

Inheritance diagram for rsb::FilteringHandler:
Inheritance graph
Collaboration diagram for rsb::FilteringHandler:
Collaboration graph

Public Member Functions

 FilteringHandler (rsb::filter::FilterPtr filter, HandlerPtr next)
 
void handle (EventPtr event)
 Handle event. More...
 
- 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
 

Protected Attributes

rsb::filter::FilterPtr filter
 
HandlerPtr next
 

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

A utility class that forwards events to another rsb::Handler object if they match a given rsb::filter::Filter.

Author
jmoringe

Definition at line 176 of file Handler.h.

Constructor & Destructor Documentation

rsb::FilteringHandler::FilteringHandler ( rsb::filter::FilterPtr  filter,
HandlerPtr  next 
)
inline

Definition at line 178 of file Handler.h.

Member Function Documentation

void rsb::FilteringHandler::handle ( EventPtr  event)
inlinevirtual

Handle event.

Parameters
eventThe event that should be handled.

Implements rsb::eventprocessing::Handler.

Definition at line 183 of file Handler.h.

Member Data Documentation

rsb::filter::FilterPtr rsb::FilteringHandler::filter
protected

Definition at line 189 of file Handler.h.

HandlerPtr rsb::FilteringHandler::next
protected

Definition at line 190 of file Handler.h.


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