NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkOpenCVVideoDataSourceActivator.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkOpenCVVideoDataSourceActivator_h
16 #define niftkOpenCVVideoDataSourceActivator_h
17 
19 #include <usModuleActivator.h>
20 #include <usModuleContext.h>
21 #include <memory>
22 
23 namespace niftk
24 {
25 
30 class OpenCVVideoDataSourceActivator : public us::ModuleActivator
31 {
32 public:
33 
36 
37  void Load(us::ModuleContext* context) override;
38  void Unload(us::ModuleContext*) override;
39 
40 private:
41 
42  OpenCVVideoDataSourceActivator(const OpenCVVideoDataSourceActivator&); // deliberately not implemented
43  OpenCVVideoDataSourceActivator& operator=(const OpenCVVideoDataSourceActivator&); // deliberately not implemented
44 
45  std::auto_ptr<niftk::OpenCVVideoDataSourceFactory> m_Factory;
46 };
47 
48 } // end namespace
49 
50 #endif
Activator to register the OpenCVVideoDataSourceFactory.
Definition: niftkOpenCVVideoDataSourceActivator.h:30
OpenCVVideoDataSourceActivator()
Definition: niftkOpenCVVideoDataSourceActivator.cxx:24
void Unload(us::ModuleContext *) override
Definition: niftkOpenCVVideoDataSourceActivator.cxx:46
void Load(us::ModuleContext *context) override
Definition: niftkOpenCVVideoDataSourceActivator.cxx:36
Definition: niftkExceptionObject.h:21
~OpenCVVideoDataSourceActivator()
Definition: niftkOpenCVVideoDataSourceActivator.cxx:30