|
| Document (const std::string &pPath=std::string(), const LabelParams &pLabelParams=LabelParams(), const SeparatorParams &pSeparatorParams=SeparatorParams(), const ConverterParams &pConverterParams=ConverterParams()) |
| Constructor. More...
|
|
| Document (std::istream &pStream, const LabelParams &pLabelParams=LabelParams(), const SeparatorParams &pSeparatorParams=SeparatorParams(), const ConverterParams &pConverterParams=ConverterParams()) |
| Constructor. More...
|
|
void | Load (const std::string &pPath) |
| Read Document data from file. More...
|
|
void | Load (std::istream &pStream) |
| Read Document data from stream. More...
|
|
void | Save (const std::string &pPath=std::string()) |
| Write Document data to file. More...
|
|
void | Save (std::ostream &pStream) |
| Write Document data to stream. More...
|
|
ssize_t | GetColumnIdx (const std::string &pColumnName) const |
| Get column index by name. More...
|
|
template<typename T > |
std::vector< T > | GetColumn (const size_t pColumnIdx) const |
| Get column by index. More...
|
|
template<typename T > |
std::vector< T > | GetColumn (const size_t pColumnIdx, ConvFunc< T > pToVal) const |
| Get column by index. More...
|
|
template<typename T > |
std::vector< T > | GetColumn (const std::string &pColumnName) const |
| Get column by name. More...
|
|
template<typename T > |
std::vector< T > | GetColumn (const std::string &pColumnName, ConvFunc< T > pToVal) const |
| Get column by name. More...
|
|
template<typename T > |
void | SetColumn (const size_t pColumnIdx, const std::vector< T > &pColumn) |
| Set column by index. More...
|
|
template<typename T > |
void | SetColumn (const std::string &pColumnName, const std::vector< T > &pColumn) |
| Set column by name. More...
|
|
void | RemoveColumn (const size_t pColumnIdx) |
| Remove column by index. More...
|
|
void | RemoveColumn (const std::string &pColumnName) |
| Remove column by name. More...
|
|
size_t | GetColumnCount () const |
| Get number of data columns (excluding label columns). More...
|
|
ssize_t | GetRowIdx (const std::string &pRowName) const |
| Get row index by name. More...
|
|
template<typename T > |
std::vector< T > | GetRow (const size_t pRowIdx) const |
| Get row by index. More...
|
|
template<typename T > |
std::vector< T > | GetRow (const size_t pRowIdx, ConvFunc< T > pToVal) const |
| Get row by index. More...
|
|
template<typename T > |
std::vector< T > | GetRow (const std::string &pRowName) const |
| Get row by name. More...
|
|
template<typename T > |
std::vector< T > | GetRow (const std::string &pRowName, ConvFunc< T > pToVal) const |
| Get row by name. More...
|
|
template<typename T > |
void | SetRow (const size_t pRowIdx, const std::vector< T > &pRow) |
| Set row by index. More...
|
|
template<typename T > |
void | SetRow (const std::string &pRowName, const std::vector< T > &pRow) |
| Set row by name. More...
|
|
void | RemoveRow (const size_t pRowIdx) |
| Remove row by index. More...
|
|
void | RemoveRow (const std::string &pRowName) |
| Remove row by name. More...
|
|
size_t | GetRowCount () const |
| Get number of data rows (excluding label rows). More...
|
|
template<typename T > |
T | GetCell (const size_t pColumnIdx, const size_t pRowIdx) const |
| Get cell by index. More...
|
|
template<typename T > |
T | GetCell (const size_t pColumnIdx, const size_t pRowIdx, ConvFunc< T > pToVal) const |
| Get cell by index. More...
|
|
template<typename T > |
T | GetCell (const std::string &pColumnName, const std::string &pRowName) const |
| Get cell by name. More...
|
|
template<typename T > |
T | GetCell (const std::string &pColumnName, const std::string &pRowName, ConvFunc< T > pToVal) const |
| Get cell by name. More...
|
|
template<typename T > |
T | GetCell (const std::string &pColumnName, const size_t pRowIdx) const |
| Get cell by column name and row index. More...
|
|
template<typename T > |
T | GetCell (const std::string &pColumnName, const size_t pRowIdx, ConvFunc< T > pToVal) const |
| Get cell by column name and row index. More...
|
|
template<typename T > |
T | GetCell (const size_t pColumnIdx, const std::string &pRowName) const |
| Get cell by column index and row name. More...
|
|
template<typename T > |
T | GetCell (const size_t pColumnIdx, const std::string &pRowName, ConvFunc< T > pToVal) const |
| Get cell by column index and row name. More...
|
|
template<typename T > |
void | SetCell (const size_t pColumnIdx, const size_t pRowIdx, const T &pCell) |
| Set cell by index. More...
|
|
template<typename T > |
void | SetCell (const std::string &pColumnName, const std::string &pRowName, const T &pCell) |
| Set cell by name. More...
|
|
std::string | GetColumnName (const ssize_t pColumnIdx) |
| Get column name. More...
|
|
void | SetColumnName (size_t pColumnIdx, const std::string &pColumnName) |
| Set column name. More...
|
|
std::vector< std::string > | GetColumnNames () |
| Get column names. More...
|
|
std::string | GetRowName (const ssize_t pRowIdx) |
| Get row name. More...
|
|
void | SetRowName (size_t pRowIdx, const std::string &pRowName) |
| Set row name. More...
|
|
std::vector< std::string > | GetRowNames () |
| Get row names. More...
|
|
Class representing a CSV document.