Manager of plugIn of classes. More...
Manager of plugIn of classes.
Gives the ability to manage static plugins (.lib / .a) or dynamic plugins (.dll / .so) that brings new classes into the business model. Based on ConceptRTModel Layer and its factory mechanism.
There are two use cases:
Public Member Methods | |
void | LoadConfiguration (IDataStore &dataStore) |
Load the plugin configuration files More... | |
void | LoadConfiguration (PCChar8 filename) |
Load the plugin configuration files More... | |
bool | LoadPlugins (IMessageCollector *messageCollector=NULL) |
Load the plugins binaries into the current software. More... | |
const BaseConceptFactories & | GetConceptFactories () const |
Gets the factories. More... | |
void | GetConceptFactories (BaseConceptFactories &factories) |
Retrieves the factories More... | |
void | RegisterFactory (BaseConceptFactory &factory) |
Register a factory More... | |
void | RegisterFactories (BaseConceptFactories &factories) |
Register factories More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< PluginClassManager > | |
static PluginClassManager * | GetInstancePointer () |
Gets the instance pointer. More... | |
static PluginClassManager & | GetInstance () |
Gets the instance. More... | |
static void | DeleteInstance (bool allowNewCreation=false) |
Deletes the instance. More... | |
static bool | IsCreated () |
Query if the singleton instance has already been created. More... | |
const BaseConceptFactories& GetConceptFactories | ( | ) | const |
Gets the factories.
void GetConceptFactories | ( | BaseConceptFactories & | factories | ) |
Retrieves the factories
factories | [in, out] The factory list to populate. |
void LoadConfiguration | ( | IDataStore & | dataStore | ) |
Load the plugin configuration files
dataStore | The dataStore source. |
Structure expected DataList of String.
void LoadConfiguration | ( | PCChar8 | filename | ) |
Load the plugin configuration files
filename | the file name. |
Structure expected DataList of String.
bool LoadPlugins | ( | IMessageCollector * | messageCollector = NULL | ) |
Load the plugins binaries into the current software.
messageCollector | (Optional) a message collector. Default = NULL. |
void RegisterFactories | ( | BaseConceptFactories & | factories | ) |
Register factories
factories | The factories to register. |
void RegisterFactory | ( | BaseConceptFactory & | factory | ) |
Register a factory
factory | The factory to register. |