Our submodule loader, use this to load modules from within modules (we need to go deeper)
More...
#include <SubModuleLoader.h>
Our submodule loader, use this to load modules from within modules (we need to go deeper)
| trippingcyril::SubModuleLoader::SubModuleLoader |
( |
| ) |
|
| virtual trippingcyril::SubModuleLoader::~SubModuleLoader |
( |
| ) |
|
|
virtual |
| std::vector<Module*>::const_iterator trippingcyril::SubModuleLoader::begin |
( |
| ) |
const |
|
inline |
| std::vector<Module*>::const_iterator trippingcyril::SubModuleLoader::end |
( |
| ) |
const |
|
inline |
| Module* trippingcyril::SubModuleLoader::FindModule |
( |
const String & |
module | ) |
|
Get a loaded module using it's name.
- Parameters
-
| module | The name of the module |
- Returns
- The module if found, NULL otherwise
| size_t trippingcyril::SubModuleLoader::LoadedModules |
( |
| ) |
const |
|
inline |
- Returns
- The amount of loaded modules
| bool trippingcyril::SubModuleLoader::LoadModule |
( |
const String & |
path, |
|
|
const String & |
config = "" |
|
) |
| |
Loads to module.
- Parameters
-
| path | The path of the module to load |
| config | Path to config file |
- Returns
- True if the module was succesfully loaded
| bool trippingcyril::SubModuleLoader::UnloadModule |
( |
const String & |
modName, |
|
|
String & |
retMsg |
|
) |
| |
Unloads a previously loaded module.
- Parameters
-
| modName | The name of the module to unload |
| retMsg | The return message |
- Returns
- True if the module was succesfully unloaded
| virtual bool trippingcyril::SubModuleLoader::validateModule |
( |
const Module * |
module, |
|
|
String & |
retMsg |
|
) |
| |
|
protectedpure virtual |
Override this to validateModules, as you'll want to make sure that all your modules are the same.
- Parameters
-
| module | The module to validate |
| retMsg | If you refuse it, it would be nice to fill in why in this parameter |
- Returns
- True if valid, false otherwise. It'll automatically get unloaded then.
The documentation for this class was generated from the following file: