RSB
0.7.0
|
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. | |
Public Member Functions inherited from rsb::Handler | |
std::set< std::string > | getMethods () const |
Returns the desired set of methods this handler can handle. | |
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. | |
Handler (const std::set< std::string > &methods) | |
Creates a new handler that only accepts events with the specified methods. | |
virtual | ~Handler () |
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 57 of file Handler.cpp.
string rsb::EventFunctionHandler::getClassName | ( | ) | const |
Reimplemented from rsb::Handler.
Definition at line 62 of file Handler.cpp.
|
virtual |
Handle event.
event | The event that should be handled. |
Implements rsb::eventprocessing::Handler.
Definition at line 70 of file Handler.cpp.
void rsb::EventFunctionHandler::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 66 of file Handler.cpp.
|
protected |