Medical Imaging Interaction Toolkit
2016.11.0
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. |
Definition at line 159 of file usModuleSettings.cpp.
Referenced by AddMitkAutoLoadPaths().
|
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.
Definition at line 54 of file usModuleSettings.cpp.
|
static |
Definition at line 136 of file usModuleSettings.cpp.
|
static |
Get the current logging level.
Definition at line 183 of file usModuleSettings.cpp.
|
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.
Definition at line 171 of file usModuleSettings.cpp.
|
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. Definition at line 119 of file usModuleSettings.cpp.
|
static |
true
if threading support has been configured into the CppMicroServices library, false
otherwise. Definition at line 110 of file usModuleSettings.cpp.
|
static |
Enable or disable auto-loading support.
enable | If true , enable auto-loading support, disable it otherwise. |
Definition at line 130 of file usModuleSettings.cpp.
|
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. |
Definition at line 148 of file usModuleSettings.cpp.
|
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. |
Definition at line 177 of file usModuleSettings.cpp.
|
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. |
Definition at line 165 of file usModuleSettings.cpp.
Referenced by mitk::BaseApplication::initializeCppMicroServices().