|
LRAUV
revA
|
Loads modules (either compiled c++ or scripted). More...
#include <ModuleLoader.h>

Public Member Functions | |
| ModuleLoader (ListOfLoadedModulePtrs &loadedModules) | |
| Constructor. More... | |
| virtual | ~ModuleLoader () |
| Destructor. More... | |
| void | loadModules (const Str &path) |
| Loads the modules in the indicated path by file name, adds the components to the list of components and component map registers their contained components' dataElements. More... | |
| LoadedModule * | loadModule (Str path) |
| Loads the indicated module by file name, adds the components to the list of components and component map registers its contained components' dataElements. More... | |
| LoadedModule * | loadLibraryModule (Str path) |
| Loads the indicated compiled libray module. More... | |
| void | run (void) |
| Run doesn't do anything. More... | |
Static Public Member Functions | |
| static bool | PathExists (const Str &filePath) |
| Returns true if the indicated file exists. More... | |
Private Attributes | |
| Logger | logger_ |
| Logger. More... | |
| ListOfLoadedModulePtrs & | loadedModules_ |
| List of modules supplied (and owned) by Supervisor. More... | |
Loads modules (either compiled c++ or scripted).
| ModuleLoader::ModuleLoader | ( | ListOfLoadedModulePtrs & | loadedModules | ) |
Constructor.
|
virtual |
Destructor.
| LoadedModule * ModuleLoader::loadLibraryModule | ( | Str | path | ) |
Loads the indicated compiled libray module.
Loads the indicated compiled library module.
References create_module(), Str::cStr(), destroy_module(), Syslog::ERROR, logger_, and Logger::syslog().
Referenced by loadModule().
| LoadedModule * ModuleLoader::loadModule | ( | Str | path | ) |
Loads the indicated module by file name, adds the components to the list of components and component map registers its contained components' dataElements.
Loads the indicated module by file name root, adds the components to the list of components and component map registers its contained components' dataElements.
References Syslog::ERROR, Str::find(), Module::getDescription(), LoadedModule::getModule(), Module::getName(), Module::loadComponents(), loadedModules_, loadLibraryModule(), logger_, PathExists(), FlexArray< T >::push(), Str::size(), and Logger::syslog().
Referenced by loadModules().
| void ModuleLoader::loadModules | ( | const Str & | path | ) |
Loads the modules in the indicated path by file name, adds the components to the list of components and component map registers their contained components' dataElements.
References Str::cStr(), Syslog::ERROR, loadModule(), logger_, and Logger::syslog().
Referenced by Supervisor::initialize().
|
static |
|
inline |
Run doesn't do anything.
|
private |
List of modules supplied (and owned) by Supervisor.
Referenced by loadModule().
|
private |
Referenced by loadLibraryModule(), loadModule(), and loadModules().