ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkCSVArray2DFileReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 
00019 #ifndef __itkCSVArray2DFileReader_h
00020 #define __itkCSVArray2DFileReader_h
00021 
00022 #include "itkCSVFileReaderBase.h"
00023 #include "itkCSVArray2DDataObject.h"
00024 
00025 namespace itk
00026 {
00027 
00077 template <class TData>
00078 class ITK_EXPORT CSVArray2DFileReader:public CSVFileReaderBase
00079 {
00080 public:
00082   typedef CSVArray2DFileReader      Self;
00083   typedef CSVFileReaderBase         Superclass;
00084   typedef SmartPointer<Self>        Pointer;
00085   typedef SmartPointer<const Self>  ConstPointer;
00086 
00088   itkNewMacro(Self);
00089 
00091   itkTypeMacro(Self,Superclass);
00092 
00094   typedef typename itk::CSVArray2DDataObject<TData>    Array2DDataObjectType;
00095   typedef typename Array2DDataObjectType::Pointer      Array2DDataObjectPointer;
00096 
00098   typedef TData ValueType;
00099 
00102   itkGetObjectMacro(Array2DDataObject,Array2DDataObjectType);
00103 
00108   void Parse();
00109 
00112   virtual void Update();
00113 
00116   virtual Array2DDataObjectPointer GetOutput();
00117 
00118 protected:
00119 
00120   CSVArray2DFileReader();
00121   virtual ~CSVArray2DFileReader () {}
00122 
00124   void PrintSelf(std::ostream & os, Indent indent) const;
00125 
00126 private:
00127 
00128   Array2DDataObjectPointer   m_Array2DDataObject;
00129 
00130   CSVArray2DFileReader(const Self &);  //purposely not implemented
00131   void operator=(const Self &);          //purposely not implemented
00132 };
00133 
00134 } //end namespace itk
00135 
00136 #ifndef ITK_MANUAL_INSTANTIATION
00137 #include "itkCSVArray2DFileReader.hxx"
00138 #endif
00139 
00140 #endif
00141