CppMicroServices

C++ Micro Services: ModuleRegistry Class Reference
ModuleRegistry Class Reference

Here we handle all the modules that are loaded in the framework. More...

Static Public Member Functions

static ModuleGetModule (long id)
 Get the module that has the specified module identifier. More...
 
static ModuleGetModule (const std::string &name)
 Get the module that has specified module name. More...
 
static void GetModules (std::vector< Module * > &modules)
 Get all known modules. More...
 
static void GetLoadedModules (std::vector< Module * > &modules)
 Get all modules currently in module state LOADED. More...
 

Detailed Description

Here we handle all the modules that are loaded in the framework.

Member Function Documentation

static void ModuleRegistry::GetLoadedModules ( std::vector< Module * > &  modules)
static

Get all modules currently in module state LOADED.

Parameters
modulesA list which is filled with all modules in state LOADED
static Module* ModuleRegistry::GetModule ( long  id)
static

Get the module that has the specified module identifier.

Parameters
idThe identifier of the module to get.
Returns
Module or null if the module was not found.
static Module* ModuleRegistry::GetModule ( const std::string &  name)
static

Get the module that has specified module name.

Parameters
nameThe name of the module to get.
Returns
Module or null.
static void ModuleRegistry::GetModules ( std::vector< Module * > &  modules)
static

Get all known modules.

Parameters
modulesA list which is filled with all known modules.