LRAUV  revA
ModuleLoader.h
Go to the documentation of this file.
1 
10 #ifndef MODULELOADER_H_
11 #define MODULELOADER_H_
12 
13 #ifndef WINNT
14 #include <dlfcn.h>
15 #endif
16 
17 #include "component/Component.h"
18 #include "module/LoadedModule.h"
19 #include "module/Module.h"
20 #include "utils/Str.h"
21 
22 class DataReader;
23 class DataWriter;
24 
32 {
33 public:
35  ModuleLoader( ListOfLoadedModulePtrs& loadedModules );
36 
38  virtual ~ModuleLoader();
39 
41  static bool PathExists( const Str& filePath );
42 
46  void loadModules( const Str& path );
47 
51  LoadedModule* loadModule( Str path );
52 
55 
57  void run( void )
58  {}
59  ;
60 
61 private:
62 
65 
68 
69 
70 };
71 
72 #endif /*MODULELOADER_H_*/
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
LoadedModule * loadModule(Str path)
Loads the indicated module by file name, adds the components to the list of components and component ...
Definition: ModuleLoader.cpp:78
Loads modules (either compiled c++ or scripted).
Definition: ModuleLoader.h:31
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: DataReader.h:30
Contains the Component class definition.
ModuleLoader(ListOfLoadedModulePtrs &loadedModules)
Constructor.
Definition: ModuleLoader.cpp:25
Contains information about a currently loaded module, including the shared library and destroy method...
Definition: LoadedModule.h:25
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: DataWriter.h:27
static bool PathExists(const Str &filePath)
Returns true if the indicated file exists.
Definition: ModuleLoader.cpp:35
Replacement for standard template class string.
Definition: Str.h:12
Logger logger_
Logger.
Definition: ModuleLoader.h:59
virtual ~ModuleLoader()
Destructor.
Definition: ModuleLoader.cpp:31
Contains the Module class definition.
ListOfLoadedModulePtrs & loadedModules_
List of modules supplied (and owned) by Supervisor.
Definition: ModuleLoader.h:67
LoadedModule * loadLibraryModule(Str path)
Loads the indicated compiled libray module.
Definition: ModuleLoader.cpp:120
void run(void)
Run doesn't do anything.
Definition: ModuleLoader.h:57
void loadModules(const Str &path)
Loads the modules in the indicated path by file name, adds the components to the list of components a...
Definition: ModuleLoader.cpp:46
Contains the LoadedModule class definition.