Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usModuleRegistry.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef USMODULEREGISTRY_H
14 #define USMODULEREGISTRY_H
15 
16 #include <vector>
17 #include <string>
18 
19 #include <usGlobalConfig.h>
21 
22 namespace us {
23 
24 class Module;
25 struct ModuleInfo;
26 struct ModuleActivator;
27 
34 
35 public:
36 
44  static Module* GetModule(long id);
45 
52  static Module* GetModule(const std::string& name);
53 
59  static std::vector<Module*> GetModules();
60 
67  static std::vector<Module*> GetLoadedModules();
68 
72  static void Register(ModuleInfo* info);
73 
77  static void UnRegister(const ModuleInfo* info);
78 
79 private:
80 
81  // disabled
83 
84 };
85 
86 }
87 
88 #endif // USMODULEREGISTRY_H
#define MITKCPPMICROSERVICES_EXPORT
Here we handle all the modules that are loaded in the framework.
static void Register(ModuleInfo *info)
Register a module with the framework.
static std::vector< Module * > GetModules()
Get all known modules.
static Module * GetModule(long id)
Get the module that has the specified module identifier.
static void UnRegister(const ModuleInfo *info)
Unregister a module from the framework.
static std::vector< Module * > GetLoadedModules()
Get all modules currently in module state LOADED.
static Module * GetModule(const std::string &name)
Get the module that has specified module name.
Represents a CppMicroServices module.
Definition: usModule.h:70
This class is not intended to be used directly. It is exported to support the CppMicroServices module...
Definition: usModuleInfo.h:31