Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkOpenCLActivator.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef __mitkOpenCLActivator_h
18 #define __mitkOpenCLActivator_h
19 
20 #include "mitkOclResourceServiceImpl_p.h"
21 
22 #include <usModuleActivator.h>
23 #include <usModuleContext.h>
24 #include <usGetModuleContext.h>
25 #include <usServiceProperties.h>
26 
27 #include <set>
28 #include <algorithm>
29 #include <memory>
30 
37 class US_ABI_LOCAL OpenCLActivator : public us::ModuleActivator
38 {
39 private:
40 
41  std::unique_ptr<OclResourceServiceImpl> m_ResourceService;
42 
43 public:
45  void Load(us::ModuleContext *context);
46 
48  void Unload(us::ModuleContext* );
49 
50 };
51 
52 
53 
54 #endif // __mitkOpenCLActivator_h
Custom activator for the OpenCL Module in order to register and provide the OclResourceService.
virtual void Unload(ModuleContext *context)=0
virtual void Load(ModuleContext *context)=0