NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkCoreIOActivator.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 niftkCoreIOActivator_h
16 #define niftkCoreIOActivator_h
17 
18 #include <memory>
19 
20 #include <mitkIFileReader.h>
21 #include <mitkIFileWriter.h>
22 
23 #include <usModuleActivator.h>
24 #include <usModuleContext.h>
25 
28 #include "niftkLabelMapReader.h"
29 #include "niftkLabelMapWriter.h"
31 #include "niftkPNMReaderService.h"
32 #include "niftkPNMWriterService.h"
33 
34 namespace niftk
35 {
36 
42 class CoreIOActivator : public us::ModuleActivator
43 {
44 public:
45 
47  void Load(us::ModuleContext* context) override;
48  void Unload(us::ModuleContext* ) override;
49 
50 private:
51 
52  std::auto_ptr<niftk::CoordinateAxesDataReaderService> m_CoordinateAxesDataReaderService;
53  std::auto_ptr<niftk::CoordinateAxesDataWriterService> m_CoordinateAxesDataWriterService;
54 
55  std::auto_ptr<niftk::PNMReaderService> m_PNMReaderService;
56  std::auto_ptr<niftk::PNMWriterService> m_PNMWriterService;
57 
58  std::auto_ptr<LookupTableProviderService> m_LookupTableProviderService;
59  std::auto_ptr<niftk::LabelMapReader> m_LabelMapReaderService;
60  std::auto_ptr<niftk::LabelMapWriter> m_LabelMapWriterService;
61 
62 };
63 
64 }
65 
66 #endif
The CoreIOActivator class.
Definition: niftkCoreIOActivator.h:42
void Load(us::ModuleContext *context) override
Definition: niftkCoreIOActivator.cxx:40
void Unload(us::ModuleContext *) override
Definition: niftkCoreIOActivator.cxx:70
Definition: niftkExceptionObject.h:21
CoreIOActivator()
Definition: niftkCoreIOActivator.cxx:27