ITK  5.2.0
Insight Toolkit
itkCSVArray2DFileReader.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef itkCSVArray2DFileReader_h
20 #define itkCSVArray2DFileReader_h
21 
22 #include "itkCSVFileReaderBase.h"
24 
25 namespace itk
26 {
27 
78 template <typename TData>
79 class ITK_TEMPLATE_EXPORT CSVArray2DFileReader : public CSVFileReaderBase
80 {
81 public:
82  ITK_DISALLOW_COPY_AND_MOVE(CSVArray2DFileReader);
84 
90 
92  itkNewMacro(Self);
93 
96 
99  using Array2DDataObjectPointer = typename Array2DDataObjectType::Pointer;
100 
102  using ValueType = TData;
103 
106  itkGetModifiableObjectMacro(Array2DDataObject, Array2DDataObjectType);
107 
112  void
113  Parse() override;
114 
117  virtual void
118  Update();
119 
123  GetOutput();
124 
125 protected:
127  ~CSVArray2DFileReader() override = default;
128 
130  void
131  PrintSelf(std::ostream & os, Indent indent) const override;
132 
133 private:
135 };
136 
137 } // end namespace itk
138 
139 #ifndef ITK_MANUAL_INSTANTIATION
140 # include "itkCSVArray2DFileReader.hxx"
141 #endif
142 
143 #endif
itk::CSVArray2DDataObject
Stores parsed data from csv files.
Definition: itkCSVArray2DDataObject.h:47
itk::CSVArray2DFileReader
Parses csv files and stores the data in a itkCSVArray2DDataObject.
Definition: itkCSVArray2DFileReader.h:79
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::CSVFileReaderBase
A base class that contains common methods used for parsing csv files.
Definition: itkCSVFileReaderBase.h:65
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkCSVFileReaderBase.h
itk::CSVArray2DFileReader::Array2DDataObjectType
typename itk::CSVArray2DDataObject< TData > Array2DDataObjectType
Definition: itkCSVArray2DFileReader.h:98
itkCSVArray2DDataObject.h
itk::CSVArray2DFileReader::m_Array2DDataObject
Array2DDataObjectPointer m_Array2DDataObject
Definition: itkCSVArray2DFileReader.h:134
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:62
itk::CSVArray2DFileReader::Array2DDataObjectPointer
typename Array2DDataObjectType::Pointer Array2DDataObjectPointer
Definition: itkCSVArray2DFileReader.h:99
itk::CSVArray2DFileReader::ValueType
TData ValueType
Definition: itkCSVArray2DFileReader.h:102