Medical Imaging Interaction Toolkit  2018.4.99-9a29ffc6
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 (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 
13 #ifndef __mitkOpenCLActivator_h
14 #define __mitkOpenCLActivator_h
15 
16 #include "mitkOclResourceServiceImpl_p.h"
17 
18 #include <usModuleActivator.h>
19 #include <usModuleContext.h>
20 #include <usGetModuleContext.h>
21 #include <usServiceProperties.h>
22 
23 #include <set>
24 #include <algorithm>
25 #include <memory>
26 
33 class US_ABI_LOCAL OpenCLActivator : public us::ModuleActivator
34 {
35 private:
36 
37  std::unique_ptr<OclResourceServiceImpl> m_ResourceService;
38 
39 public:
41  void Load(us::ModuleContext *context);
42 
44  void Unload(us::ModuleContext* );
45 
46 };
47 
48 
49 
50 #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