Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usModuleSettings.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 
14 #ifndef USMODULESETTINGS_H
15 #define USMODULESETTINGS_H
16 
17 #include <usGlobalConfig.h>
19 
20 #include <vector>
21 #include <string>
22 
23 namespace us {
24 
40 {
41 public:
42 
44  typedef std::vector<std::string> PathList;
45 
64  static std::string CURRENT_MODULE_PATH();
65 
71 
80  static bool IsAutoLoadingEnabled();
81 
91  static void SetAutoLoadingEnabled(bool enable);
92 
98 
104  static void SetAutoLoadPaths(const PathList& paths);
105 
112  static void AddAutoLoadPath(const std::string& path);
113 
125  static void SetStoragePath(const std::string& path);
126 
134  static std::string GetStoragePath();
135 
136 private:
137 
138  // purposely not implemented
139  ModuleSettings();
141  ModuleSettings& operator=(const ModuleSettings&);
142 };
143 
144 }
145 
146 #endif // USMODULESETTINGS_H
#define MITKCPPMICROSERVICES_EXPORT
Query and set certain properties of the CppMicroServices library.
static bool IsThreadingSupportEnabled()
static void SetStoragePath(const std::string &path)
Set a local storage path for persistend module data.
static bool IsAutoLoadingEnabled()
static void AddAutoLoadPath(const std::string &path)
Add a path in the file-system to the list of paths from which modules will be auto-loaded.
static std::string CURRENT_MODULE_PATH()
Returns a special string which can be used as an argument for a AddAutoLoadPath() call.
static PathList GetAutoLoadPaths()
static std::string GetStoragePath()
Get the absolute path for persistent data. The returned path might be empty. If the path is non-empty...
static void SetAutoLoadPaths(const PathList &paths)
Set a list of paths in the file-system from which modules should be auto-loaded.
std::vector< std::string > PathList
A list of file-system paths.
static void SetAutoLoadingEnabled(bool enable)
Enable or disable auto-loading support.