#include <Configurator.h>
Collaboration diagram for ot::Configurator:

Public Types | |
| typedef void(* | ModuleInitFunc )(Context *, void *data) |
| typedef std::map< std::string, MIFunctor > | Registry |
Public Member Functions | |
| virtual | ~Configurator () |
| Context * | getContext () |
| void | parseConfigurationString (std::string configString) |
| void | changeConfiguration (std::string configString) |
| void | changeConfigurationFile (const char *xmlstring) |
| void | changeConfigurationString (const char *xmlstring) |
| void | runConfigurationThread (const char *filename) |
Static Public Member Functions | |
| static Configurator * | instance (int ctx_type=NORMAL) |
| static void | addModuleInit (const char *name, ModuleInitFunc func, void *data) |
| static void | loadModule (Context &newctx, const char *module) |
Protected Member Functions | |
| Configurator (int ctx_type=NORMAL) | |
Static Protected Member Functions | |
| static void | doInitialization (Context &newctx) |
Protected Attributes | |
| Context * | ctx |
| bool | isDefaultContext |
| ConfigurationThread * | thread |
Static Protected Attributes | |
| static Registry | initFunctions |
| static Configurator * | self = NULL |
Friends | |
| OPENTRACKER_API void | initializeContext (Context *, void *) |
Classes | |
| struct | MIFunctor |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
initializes a context by instantiating the available modules and factories and registering them with the given context. So for each passed context there is a new set of objects instantiated. This leaves the programmer with the responsibility of deleting these objects again ! Any compile time definitions go in here, to define which modules are compiled in and can be instantiated. Also the modules configuration element names are defined here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6