|
Trippin Cyril
|
Our global class which has some key features. More...
#include <Global.h>
Public Member Functions | |
| bool | LoadModule (const String &path, const String &config="") |
| Loads to module. More... | |
| bool | UnloadModule (const String &modName, String &retMsg) |
| Unloads a previously loaded module. More... | |
| Module * | FindModule (const String &module) |
| Get a loaded module using it's name. More... | |
| InterModuleData | ModuleInternalApiCall (const String &module, int method, void *arg=NULL) |
| size_t | LoadedModules () const |
| struct event_base * | GetEventBase () const |
| struct evdns_base * | GetDNSBase () const |
| void | Loop () |
| Main application loop. More... | |
| std::vector< Module * > ::const_iterator | begin () const |
| std::vector< Module * > ::const_iterator | end () const |
Static Public Member Functions | |
| static Global * | Get () |
Our global class which has some key features.
|
inline |
|
inline |
Get a loaded module using it's name.
| module | The name of the module |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Loads to module.
| path | The path of the module to load |
| config | Path to a config file |
| void trippingcyril::Global::Loop | ( | ) |
Main application loop.
| InterModuleData trippingcyril::Global::ModuleInternalApiCall | ( | const String & | module, |
| int | method, | ||
| void * | arg = NULL |
||
| ) |
Makes a call to an internal module api
| module | What module's internal api do we want to call |
| method | What method of this internal api do we want to call? Depends on your implementation of course |
| arg | Custom data, also depends on your implementation |
Unloads a previously loaded module.
| modName | The name of the module to unload |
| retMsg | The return message |
1.8.6