19#ifndef itkCSVArray2DDataObject_h
20#define itkCSVArray2DDataObject_h
46template <
typename TData>
72 itkSetMacro(HasColumnHeaders,
bool);
73 itkSetMacro(HasRowHeaders,
bool);
74 itkBooleanMacro(HasColumnHeaders);
75 itkBooleanMacro(HasRowHeaders);
79 itkGetConstMacro(HasColumnHeaders,
bool);
80 itkGetConstMacro(HasRowHeaders,
bool);
121 GetData(
const std::string &,
const std::string &)
const;
126 GetData(
const unsigned int,
const unsigned int)
const;
184 bool m_HasRowHeaders{
false };
185 bool m_HasColumnHeaders{
false };
190#ifndef ITK_MANUAL_INSTANTIATION
191# include "itkCSVArray2DDataObject.hxx"
Stores parsed data from csv files.
unsigned int GetColumnIndexByName(const std::string &) const
TData GetColumnData(const std::string &, const unsigned int) const
unsigned int GetRowIndexByName(const std::string &) const
TData GetRowData(const std::string &, const unsigned int) const
typename itk::Array2D< TData > MatrixType
void PrintSelf(std::ostream &os, Indent indent) const override
NumericVectorType GetColumn(const unsigned int) const
CSVArray2DDataObject()=default
NumericVectorType GetRow(const std::string &) const
TData operator()(const unsigned int, const unsigned int) const
typename std::vector< TData > NumericVectorType
TData GetData(const unsigned int, const unsigned int) const
TData GetData(const std::string &, const std::string &) const
StringVectorType GetRowHeaders() const
NumericVectorType GetColumn(const std::string &) const
typename std::vector< std::string > StringVectorType
void SetMatrixData(unsigned int, unsigned int, TData)
void FillMatrix(TData value)
~CSVArray2DDataObject() override=default
void ColumnHeadersPushBack(const std::string &)
StringVectorType GetColumnHeaders() const
void RowHeadersPushBack(const std::string &)
NumericVectorType GetRow(const unsigned int) const
TData operator()(const std::string &, const std::string &) const
void EraseFirstColumnHeader()
void SetMatrixSize(unsigned int, unsigned int)
Base class for all data objects in ITK.
Control indentation during Print() invocation.
A templated class holding a M x N size Matrix.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
class ITK_FORWARD_EXPORT DataObject