13 #ifndef mitkCoreServices_h
14 #define mitkCoreServices_h
30 struct IMimeTypeProvider;
31 class INodeSelectionService;
32 class IPropertyAliases;
33 class IPropertyDescriptions;
34 class IPropertyDeserialization;
35 class IPropertyExtensions;
36 class IPropertyFilters;
37 class IPropertyPersistence;
38 class IPropertyRelations;
39 class IPreferencesService;
143 return Unget(context, us_service_interface_iid<S>(), service);
147 static bool Unget(us::ModuleContext *context,
const std::string &interfaceId,
void *service);
170 : m_Service(service),
182 catch (
const std::exception &e)
188 MITK_ERROR <<
"Ungetting core service failed.";
199 us::ModuleContext* m_Context;
A RAII helper class for core service objects.
CoreServicePointer(S *service, us::ModuleContext *context=us::GetModuleContext())
Access MITK core services.
static IPropertyPersistence * GetPropertyPersistence(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyPersistence instance.
static IPropertyDescriptions * GetPropertyDescriptions(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyDescriptions instance.
static IMimeTypeProvider * GetMimeTypeProvider(us::ModuleContext *context=us::GetModuleContext())
Get an IMimeTypeProvider instance.
static IPropertyRelations * GetPropertyRelations(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyRelations instance.
static IPropertyExtensions * GetPropertyExtensions(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyExtensions instance.
static IPreferencesService * GetPreferencesService(us::ModuleContext *context=us::GetModuleContext())
Get an IPreferencesService instance.
static INodeSelectionService * GetNodeSelectionService(us::ModuleContext *context=us::GetModuleContext())
Get an INodeSelectionsService instance.
static IPropertyDeserialization * GetPropertyDeserialization(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyDeserialization instance.
static IPropertyAliases * GetPropertyAliases(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyAliases instance.
static IPropertyFilters * GetPropertyFilters(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyFilters instance.
static bool Unget(S *service, us::ModuleContext *context=us::GetModuleContext())
Unget a previously acquired service instance.
A simple messaging service for sending and receiving data node selections for certain contexts.
A service for persistent application preferences.
Interface of property aliases service.
Interface of property descriptions service.
Interface of property deserialization service.
Interface of property extensions service.
Interface of property filters service.
Interface of property persistence service.
Interface of property relations service.
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Find image slices visible on a given plane.
The IMimeTypeProvider service interface allows to query all registered mime types.