Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
us::ModuleRegistry Class Reference

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

#include <usModuleRegistry.h>

Static Public Member Functions

static Module * GetModule (long id)
 Get the module that has the specified module identifier. More...
 
static Module * GetModule (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...
 
static void Register (ModuleInfo *info)
 Register a module with the framework. More...
 
static void UnRegister (const ModuleInfo *info)
 Unregister a module from the framework. More...
 

Detailed Description

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

Definition at line 33 of file usModuleRegistry.h.

Member Function Documentation

◆ GetLoadedModules()

static std::vector<Module*> us::ModuleRegistry::GetLoadedModules ( )
static

Get all modules currently in module state LOADED.

Returns
A list which is filled with all modules in state LOADED

◆ GetModule() [1/2]

static Module* us::ModuleRegistry::GetModule ( const std::string &  name)
static

Get the module that has specified module name.

Parameters
[in]nameThe name of the module to get.
Returns
Module or null.

◆ GetModule() [2/2]

static Module* us::ModuleRegistry::GetModule ( long  id)
static

Get the module that has the specified module identifier.

Parameters
[in]idThe identifier of the module to get.
Returns
Module or null if the module was not found.

Referenced by us::GetModuleContext().

◆ GetModules()

static std::vector<Module*> us::ModuleRegistry::GetModules ( )
static

Get all known modules.

Returns
A list which is filled with all known modules.

◆ Register()

static void us::ModuleRegistry::Register ( ModuleInfo *  info)
static

Register a module with the framework.

Parameters
[in]infoThe module information to register.

◆ UnRegister()

static void us::ModuleRegistry::UnRegister ( const ModuleInfo *  info)
static

Unregister a module from the framework.

Parameters
[in]infoThe module information to unregister.

The documentation for this class was generated from the following file: