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 std::vector< Module * > GetModules ()
 Get all known modules. More...
 
static std::vector< Module * > GetLoadedModules ()
 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 std::vector<Module*> ModuleRegistry::GetLoadedModules ( )
static

Get all modules currently in module state LOADED.

Returns
A 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 std::vector<Module*> ModuleRegistry::GetModules ( )
static

Get all known modules.

Returns
A list which is filled with all known modules.