|
API New Year
1.0
API for the project ZIA, EPITECH 2017.
|
Base class representing the minimum requirements for a module. More...
#include <IModule.h>

Public Member Functions | |
| virtual int | init (void)=0 |
| initializes the module. More... | |
| virtual int | hook (IExecutionLine &executionLine)=0 |
| hooks the module to the ExecutionLine More... | |
| virtual int | hook (IServer &server)=0 |
| hooks the module to the Server More... | |
| virtual int | unhook (IExecutionLine &executionLine)=0 |
| unhooks the module from the ExecutionLine More... | |
| virtual int | unhook (IServer &server)=0 |
| unooks the module from the Server More... | |
| virtual int | destroy (void)=0 |
| destroys the module. More... | |
| virtual const std::string & | getName () const =0 |
| Getter for name of the module. More... | |
| virtual int | getPriority () const =0 |
| Getter for priority of the module. More... | |
| virtual eModuleType | getType () const =0 |
| Getter for type of the module. More... | |
| virtual float | getVersion () const =0 |
| Getter for version of the module. More... | |
| virtual const std::string & | getLocation () const =0 |
| Getter for location of the module. More... | |
| virtual const std::string & | getConfFile () const =0 |
| Getter for the modules configuration file. More... | |
| virtual void | setConfFile (const std::string &)=0 |
| Setter for the modules configuration file. More... | |
| virtual const ILogger & | getLogger () const =0 |
| Getter for logger. More... | |
Base class representing the minimum requirements for a module.
Establishes the base architecture for a module to fulfill one or several tasks for the server.
|
pure virtual |
destroys the module.
IModule allows for the module to clean anything it needs prior to it's destruction.
|
pure virtual |
Getter for the modules configuration file.
Get's the location of the modules configuration file on the disk.
|
pure virtual |
Getter for location of the module.
Get's the location of the module on the disk.
|
pure virtual |
Getter for logger.
Get's the logger used by the module for logging runtime information.
|
pure virtual |
Getter for name of the module.
Get's the name of the module.
|
pure virtual |
Getter for priority of the module.
Get's the priority of the module.
|
pure virtual |
Getter for type of the module.
Get's the type of the module.
|
pure virtual |
Getter for version of the module.
Get's the version of the module.
|
pure virtual |
hooks the module to the ExecutionLine
IModule Hooks the module to the ExecutionLine through IExecutionLine::attach, allowing the module to add itself to the ExecutionLine.
| executionLine | Reference to IExecutionLine |
|
pure virtual |
hooks the module to the Server
IModule Hooks the module to the Server through IServer::attach, allowing the module to add itself as a connection module.
| server | Reference to IServer |
|
pure virtual |
initializes the module.
IModule allows for module initizalization on load of module.
|
pure virtual |
Setter for the modules configuration file.
Sets the modules configuration file location on the disk.
| constant | string reference representing the configuration file location. |
|
pure virtual |
unhooks the module from the ExecutionLine
IModule Unhooks the module from the ExecutionLine through IExecutionLine::detach, allowing the module to remove itself from the ExecutionLine.
| executionLine | executionLine Reference to IExecutionLine |
|
pure virtual |
unooks the module from the Server
IModule Unhooks the module from the Server through IServer::detach, allowing the module to remove itself from the Server.
| server | Reference to IServer |