ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
handler_interface Class Referenceabstract

#include <handler_interface.h>

+ Inheritance diagram for handler_interface:

Public Types

typedef std::function< void(const message_container &)> response_cb
 

Public Member Functions

virtual void on_request (const message_container &message, response_cb response)=0
 

Detailed Description

An interface for reactor event handlers.

Definition at line 11 of file handler_interface.h.

Member Typedef Documentation

§ response_cb

typedef std::function<void(const message_container &)> handler_interface::response_cb

Type of the callback function passed to the handler by the reactor

Definition at line 17 of file handler_interface.h.

Member Function Documentation

§ on_request()

virtual void handler_interface::on_request ( const message_container message,
response_cb  response 
)
pure virtual

Process a message the handler is subscribed to

Parameters
messagemessage to be processed
responsecallback that enables the handler to respond

Implemented in status_notifier_handler, and broker_handler.


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