|
API New Year
1.0
API for the project ZIA, EPITECH 2017.
|
Base class representing the minimum requirements for an HTTP ExecutionLine. More...
#include <IExecutionLine.h>

Public Member Functions | |
| virtual int | run (void)=0 |
| Runs all the modules in the ExecutionLine. More... | |
| virtual int | attach (IObserver *observer, eModuleType type)=0 |
| Adds module to the ExecutionLine. More... | |
| virtual int | detach (const std::string &module, eModuleType type)=0 |
| Remove module from the ExecutionLine. More... | |
| virtual int | stop (void)=0 |
| Stops the ExecutionLine if it is running. More... | |
| virtual IHttpClient * | getHttpClient ()=0 |
| Getter for IHttpClient. More... | |
| virtual void | setHttpClient (IHttpClient *client)=0 |
| Setter for IHttpClient. More... | |
Base class representing the minimum requirements for an HTTP ExecutionLine.
Establishes the base architecture and requirements for launching modules based on module priority, and HTTP protocol requirements.
|
pure virtual |
Adds module to the ExecutionLine.
IExecutionLine Allows the module to add itself to the chain of execution. This function will add the modules IObserver to the appropriate List in the map of modules using the eModuleType. It will then order the List based on IObserver's priority.
| observer | Event containing information for the module to run. |
| type | enum representing where in the execution line the module wishes to attach. |
|
pure virtual |
Remove module from the ExecutionLine.
IExecutionLine Removes the module by name and module type from the correct list.
| module | string containing the name of the module to look for. |
| type | enum representing where in the execution line the module is located. |
|
pure virtual |
Getter for IHttpClient.
IExecutionLine gets the IHttpClient being used by the ExecutionLine.
|
pure virtual |
Runs all the modules in the ExecutionLine.
IExecutionLine run's the ExecutionLine iterating over each List in the map, by connection order, launching the modules through the IObserver's update function.
|
pure virtual |
Setter for IHttpClient.
IExeuctionLine sets the IHttpClient to be used by the ExecutionLine.
| client | pointer to an allocated IHttpClient. |
|
pure virtual |
Stops the ExecutionLine if it is running.
IExecutionLine Stops the running ExecutionLine, if not running, does nothing.