Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
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 {
27  {
28  public:
30  void Load(us::ModuleContext *context) override;
31  void Unload(us::ModuleContext *context) override;
32  ~PersistenceActivator() override;
33 
34  private:
36  us::ServiceRegistration<mitk::IPersistenceService> m_PersistenceServiceRegistration;
37  };
38 }
39 
41 #endif
DataCollection - Class to facilitate loading/accessing structured data.
void Load(us::ModuleContext *context) override
void Unload(us::ModuleContext *context) override
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.