Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <usModuleSettings.h>
Public Types | |
typedef std::vector< std::string > | PathList |
Static Public Member Functions | |
static std::string | CURRENT_MODULE_PATH () |
static bool | IsThreadingSupportEnabled () |
static bool | IsAutoLoadingEnabled () |
static void | SetAutoLoadingEnabled (bool enable) |
static PathList | GetAutoLoadPaths () |
static void | SetAutoLoadPaths (const PathList &paths) |
static void | AddAutoLoadPath (const std::string &path) |
static void | SetStoragePath (const std::string &path) |
static std::string | GetStoragePath () |
static void | SetLogLevel (MsgType level) |
static MsgType | GetLogLevel () |
Query and set certain properties of the CppMicroServices library.
The following environment variables influence the runtime behavior of the CppMicroServices library:
Definition at line 47 of file usModuleSettings.h.
typedef std::vector<std::string> us::ModuleSettings::PathList |
Definition at line 51 of file usModuleSettings.h.
|
static |
Add a path in the file-system to the list of paths from which modules will be auto-loaded.
path | The additional absolute auto-load path in the file-system. |
|
static |
Returns a special string which can be used as an argument for a AddAutoLoadPath() call.
When a module is loaded and this string has been added as a path to the list of auto-load paths the CppMicroServices library will auto-load all modules from the currently being loaded module's auto-load directory.
|
static |
|
static |
Get the current logging level.
|
static |
Get the absolute path for persistent data. The returned path might be empty. If the path is non-empty, it is safe to assume that the path exists and is writable.
|
static |
true
if support for module auto-loading is enabled, false
otherwise.false
if support for auto-loading has not been configured into the CppMicroServices library or if it has been disabled by defining the US_DISABLE_AUTOLOADING environment variable.
|
static |
true
if threading support has been configured into the CppMicroServices library, false
otherwise.
|
static |
Enable or disable auto-loading support.
enable | If true , enable auto-loading support, disable it otherwise. |
|
static |
Set a list of paths in the file-system from which modules should be auto-loaded.
paths | A list of absolute file-system paths. |
|
static |
Set the logging level for log messages from CppMicroServices modules.
Higher logging levels will discard messages with lower priority. E.g. a logging level of WarningMsg will discard all messages of type DebugMsg and InfoMsg.
level | The new logging level. |
|
static |
Set a local storage path for persistend module data.
This path is used as a base directory for providing modules with a storage path for writing persistent data. The callee must ensure that the provided path exists and is writable.
path | An absolute path for writing persistent data. |