]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/ImageReader.h
07aeebaec6ef8c63415baae0d8d317e7d31a2e6a
[cpPlugins.git] / lib / cpPlugins / Plugins / ImageReader.h
1 #ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
2 #define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
3
4 #include <vector>
5
6 #include <cpPlugins/Plugins/cpPlugins_Export.h>
7 #include <cpPlugins/Interface/ImageSource.h>
8
9 #define ITK_MANUAL_INSTANTIATION
10 #include <itkImageIOBase.h>
11
12 namespace cpPlugins
13 {
14   namespace Plugins
15   {
16     /**
17      */
18     class cpPlugins_EXPORT ImageReader
19       : public cpPlugins::Interface::ImageSource
20     {
21     public:
22       typedef ImageReader                       Self;
23       typedef cpPlugins::Interface::ImageSource Superclass;
24       typedef itk::SmartPointer< Self >         Pointer;
25       typedef itk::SmartPointer< const Self >   ConstPointer;
26
27       typedef
28         std::vector< cpPlugins::Interface::Parameters::TString >
29         TStringList;
30
31     public:
32       itkNewMacro( Self );
33       itkTypeMacro( ImageReader, cpPluginsInterfaceImageSource );
34
35     protected:
36       ImageReader( );
37       virtual ~ImageReader( );
38
39       virtual std::string _GenerateData( );
40
41       template< unsigned int D >
42         std::string _GD0( itk::ImageIOBase* io, const TStringList& names );
43
44       template< class P, unsigned int D >
45         std::string _GD1( itk::ImageIOBase* io, const TStringList& names );
46
47       template< class P, unsigned int D >
48         std::string _GD2( const TStringList& names );
49
50     private:
51       // Purposely not implemented
52       ImageReader( const Self& );
53       Self& operator=( const Self& );
54     };
55
56     // ---------------------------------------------------------------------
57     CPPLUGINS_INHERIT_PROVIDER( ImageReader );
58
59   } // ecapseman
60
61 } // ecapseman
62
63 #endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
64
65 // eof - $RCSfile$