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