]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/IO/MatrixValuesContainerReader.h
...
[FrontAlgorithms.git] / lib / fpa / IO / MatrixValuesContainerReader.h
1 #ifndef __FPA__IO__MATRIXVALUESCONTAINERREADER__H__
2 #define __FPA__IO__MATRIXVALUESCONTAINERREADER__H__
3
4 #include <string>
5 #include <itkProcessObject.h>
6
7 namespace fpa
8 {
9   namespace IO
10   {
11     /**
12      */
13     template< class T >
14     class MatrixValuesContainerReader
15       : public itk::ProcessObject
16     {
17     public:
18       typedef MatrixValuesContainerReader       Self;
19       typedef itk::ProcessObject              Superclass;
20       typedef itk::SmartPointer< Self >       Pointer;
21       typedef itk::SmartPointer< const Self > ConstPointer;
22
23       typedef T TTree;
24
25     public:
26       itkNewMacro( Self );
27       itkTypeMacro( MatrixValuesContainerReader, itkProcessObject );
28
29       itkGetConstMacro( FileName, std::string );
30       itkGetConstMacro( NumberOfLabels, unsigned int );
31
32       itkSetMacro( FileName, std::string );
33
34     public:
35       T* GetOutput( );
36
37       virtual void Update( );
38
39     protected:
40       MatrixValuesContainerReader( );
41       virtual ~MatrixValuesContainerReader( );
42
43       virtual void GenerateData( );
44
45     private:
46       // Purposely not implemented
47       MatrixValuesContainerReader( const Self& other );
48       Self& operator=( const Self& other );
49
50     protected:
51       std::string m_FileName;
52       unsigned int m_NumberOfLabels;
53     };
54
55   } // ecapseman
56
57 } // ecapseman
58
59 #include <fpa/IO/MatrixValuesContainerReader.hxx>
60
61 #endif // __FPA__IO__MATRIXVALUESCONTAINERREADER__H__
62
63 // eof - $RCSfile$