19 #ifndef itkCSVArray2DDataObject_h
20 #define itkCSVArray2DDataObject_h
45 template <
typename TData>
69 itkSetMacro(HasColumnHeaders,
bool);
70 itkSetMacro(HasRowHeaders,
bool);
71 itkBooleanMacro(HasColumnHeaders);
72 itkBooleanMacro(HasRowHeaders);
76 itkGetConstMacro(HasColumnHeaders,
bool);
77 itkGetConstMacro(HasRowHeaders,
bool);
90 unsigned int GetRowIndexByName(
const std::string &)
const;
93 unsigned int GetColumnIndexByName(
const std::string &)
const;
109 TData GetData(
const std::string &,
const std::string &)
const;
113 TData GetData(
const unsigned int &,
const unsigned int &)
const;
117 TData GetColumnData(
const std::string &,
const unsigned int &)
const;
121 TData GetRowData(
const std::string &,
const unsigned int &)
const;
125 TData operator()(
const std::string &,
const std::string &)
const;
129 TData operator()(
const unsigned int &,
const unsigned int &)
const;
132 void SetMatrixSize(
unsigned int,
unsigned int);
135 void FillMatrix(TData value);
139 void SetMatrixData(
unsigned int,
unsigned int, TData);
142 void RowHeadersPushBack(
const std::string &);
145 void ColumnHeadersPushBack(
const std::string &);
148 void EraseFirstColumnHeader();
155 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
169 #ifndef ITK_MANUAL_INSTANTIATION
170 #include "itkCSVArray2DDataObject.hxx"
SmartPointer< Self > Pointer
A templated class holding a M x N size Matrix.
std::vector< std::string > StringVectorType
CSVArray2DDataObject Self
Stores parsed data from csv files.
SmartPointer< const Self > ConstPointer
StringVectorType m_RowHeaders
StringVectorType m_ColumnHeaders
Control indentation during Print() invocation.
std::vector< TData > NumericVectorType
itk::Array2D< TData > MatrixType
Base class for all data objects in ITK.
virtual ~CSVArray2DDataObject() override