Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPersistenceActivator.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 #ifndef mitkPersistenceActivator_h
13 #define mitkPersistenceActivator_h
14 
15 // Microservices
16 #include <mitkPersistenceService.h>
17 #include <usModuleActivator.h>
18 #include <usServiceRegistration.h>
19 
20 namespace mitk
21 {
29  {
30  public:
32 
34  void Load(us::ModuleContext *context) override;
35 
37  void Unload(us::ModuleContext *context) override;
39 
40  private:
42  us::ServiceRegistration<mitk::IPersistenceService> m_PersistenceServiceRegistration;
43  };
44 }
45 
47 #endif
Module activator that installs the PersistenceService.
void Load(us::ModuleContext *context) override
Create and register the PersistenceService.
void Unload(us::ModuleContext *context) override
Unregister the PersistenceService.
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
Find image slices visible on a given plane.
Customizes the starting and stopping of a CppMicroServices module.