14 #ifndef USGETMODULECONTEXT_H
15 #define USGETMODULECONTEXT_H
17 #ifndef US_MODULE_NAME
18 #error Missing preprocessor define US_MODULE_NAME
25 #include <usModuleUtils_p.h>
48 MITK_WARN <<
"Module '" << US_STR(US_MODULE_NAME) <<
"' unknown. "
49 "The calling module probably misses a US_MODULE_NAME compile definition "
50 "and/or a call to US_INITIALIZE_MODULE in one of its source files.";
static Module * GetModule(long id)
Get the module that has the specified module identifier.
Represents a CppMicroServices module.
ModuleContext * GetModuleContext() const
Returns this module's ModuleContext. The returned ModuleContext can be used by the caller to act on b...
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
#define MITK_WARN
Log a warning message.