]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/IO/MatrixValuesContainerWriter.h
I/O classes added
[FrontAlgorithms.git] / lib / fpa / IO / MatrixValuesContainerWriter.h
1 #ifndef __FPA__IO__MATRIXVALUESCONTAINERWRITER__H__
2 #define __FPA__IO__MATRIXVALUESCONTAINERWRITER__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 MatrixValuesContainerWriter
15       : public itk::ProcessObject
16     {
17     public:
18       typedef MatrixValuesContainerWriter       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( MatrixValuesContainerWriter, itkProcessObject );
28
29       itkGetConstMacro( FileName, std::string );
30       itkSetMacro( FileName, std::string );
31
32     public:
33       void SetInput( const T* input );
34       T* GetInput( );
35       const T* GetInput( ) const;
36       virtual void Update( );
37
38     protected:
39       MatrixValuesContainerWriter( );
40       virtual ~MatrixValuesContainerWriter( );
41
42       virtual void GenerateData( );
43
44     private:
45       // Purposely not implemented
46       MatrixValuesContainerWriter( const Self& other );
47       Self& operator=( const Self& other );
48
49     protected:
50       std::string m_FileName;
51     };
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #include <fpa/IO/MatrixValuesContainerWriter.hxx>
58
59 #endif // __FPA__IO__MATRIXVALUESCONTAINERWRITER__H__
60
61 // eof - $RCSfile$