Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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
mitk::PersistenceActivator::Unload
void Unload(us::ModuleContext *context) override
mitk::PersistenceActivator::~PersistenceActivator
~PersistenceActivator() override
usModuleActivator.h
itk::SmartPointer< mitk::PersistenceService >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PersistenceActivator
Definition: mitkPersistenceActivator.h:26
mitk::PersistenceActivator::PersistenceActivator
PersistenceActivator()
us::ModuleActivator
Definition: usModuleActivator.h:63
mitk::PersistenceActivator::Load
void Load(us::ModuleContext *context) override
US_EXPORT_MODULE_ACTIVATOR
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
Definition: usModuleActivator.h:119
usServiceRegistration.h
mitkPersistenceService.h
us::ServiceRegistration< mitk::IPersistenceService >