RSB
0.16.1
|
A utility class to simplify event handling in ordinary functions or member functions. More...
#include <Handler.h>
Public Member Functions | |
EventFunctionHandler (const EventFunction &function, const std::string &method="") | |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
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 | |
EventFunction | function |
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 |
A utility class to simplify event handling in ordinary functions or member functions.
This class is primarily intended for use with Boost.Bind.
rsb::EventFunctionHandler::EventFunctionHandler | ( | const EventFunction & | function, |
const std::string & | method = "" |
||
) |
Definition at line 55 of file Handler.cpp.
string rsb::EventFunctionHandler::getClassName | ( | ) | const |
Definition at line 60 of file Handler.cpp.
|
virtual |
Handle event.
event | The event that should be handled. |
Implements rsb::eventprocessing::Handler.
Definition at line 68 of file Handler.cpp.
void rsb::EventFunctionHandler::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 64 of file Handler.cpp.
|
protected |