ITK  6.0.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 * https://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
24
25namespace itk
26{
27
78template <typename TData>
79class ITK_TEMPLATE_EXPORT CSVArray2DFileReader : public CSVFileReaderBase
80{
81public:
82 ITK_DISALLOW_COPY_AND_MOVE(CSVArray2DFileReader);
90
92 itkNewMacro(Self);
93
95 itkOverrideGetNameOfClassMacro(CSVArray2DFileReader);
96
100
102 using ValueType = TData;
103
106 itkGetModifiableObjectMacro(Array2DDataObject, Array2DDataObjectType);
107
112 void
113 Parse() override;
114
117 virtual void
119
124
125protected:
127 ~CSVArray2DFileReader() override = default;
128
130 void
131 PrintSelf(std::ostream & os, Indent indent) const override;
132
133private:
134 Array2DDataObjectPointer m_Array2DDataObject{};
135};
136
137} // end namespace itk
138
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkCSVArray2DFileReader.hxx"
141#endif
142
143#endif
Stores parsed data from csv files.
Parses csv files and stores the data in a itkCSVArray2DDataObject.
typename itk::CSVArray2DDataObject< TData > Array2DDataObjectType
~CSVArray2DFileReader() override=default
virtual Array2DDataObjectPointer GetOutput()
void PrintSelf(std::ostream &os, Indent indent) const override
typename Array2DDataObjectType::Pointer Array2DDataObjectPointer
A base class that contains common methods used for parsing csv files.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Base class for most ITK classes.
Definition: itkObject.h:62
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....