|
ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
|
#include <reactor.h>
Inheritance diagram for handler_wrapper:Public Member Functions | |
| handler_wrapper (reactor &reactor_ref, std::shared_ptr< handler_interface > handler) | |
| virtual | ~handler_wrapper () |
| virtual void | operator() (const message_container &message) |
Protected Attributes | |
| std::shared_ptr< handler_interface > | handler_ |
| reactor & | reactor_ |
A basic wrapper for reactor event handlers, which just calls the handler callback directly This class is meant to be extended to provide more complicated calling strategies (e.g. async callbacks).
| handler_wrapper::handler_wrapper | ( | reactor & | reactor_ref, |
| std::shared_ptr< handler_interface > | handler | ||
| ) |
| reactor_ref | reactor object which owns the handler |
| handler | the handler object |
Definition at line 137 of file reactor.cpp.
|
virtual |
A virtual destructor
Definition at line 142 of file reactor.cpp.
|
virtual |
Pass a message to the handler by calling it directly
| message | The message to be passed |
Reimplemented in asynchronous_handler_wrapper.
Definition at line 146 of file reactor.cpp.
|
protected |
|
protected |