Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkMatchPointActivator.cpp
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 
14 
15 #include <usModuleActivator.h>
16 #include <usModuleContext.h>
17 
18 
19 namespace mitk {
20 
21 /*
22  * This is the module activator for the "MatchPoint" module.
23  */
24 class MatchPointActivator : public us::ModuleActivator
25 {
26 public:
27 
28  void Load(us::ModuleContext* ) override
29  {
30  m_MAPRegistrationWrapperIO = new MAPRegistrationWrapperIO();
31  }
32 
33  void Unload(us::ModuleContext* ) override
34  {
35  delete m_MAPRegistrationWrapperIO;
36  }
37 
38 private:
39 
40  mitk::MAPRegistrationWrapperIO* m_MAPRegistrationWrapperIO;
41 };
42 }
43 
44 US_EXPORT_MODULE_ACTIVATOR(mitk::MatchPointActivator)
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Unload(ModuleContext *context)=0
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.
virtual void Load(ModuleContext *context)=0