Class for reading a csv file into a table, using given options.
More...
#include <iACsvIO.h>
|
| | iACsvIO () |
| |
| const QStringList & | fileHeaders () const |
| | get the list of columns/headers as it is in the file
|
| |
| bool | loadCSV (iACsvTableCreator &dstTbl, iACsvConfig const ¶ms, size_t const rowCount=std::numeric_limits< size_t >::max()) |
| | reads table entries from csv file
|
| |
| const QStringList & | outputHeaders () const |
| | get list of all headers in result table (including computed columns)
|
| |
| iAColMapP | outputMapping () const |
| | get mapping in which fields the important values are stored.
|
| |
|
| static const char * | ColNameAutoID = "Auto_ID" |
| | name of the auto ID column (inserted optionally)
|
| |
| static const char * | ColNameClassID = "Class_ID" |
| | name of the class ID column (always inserted as last column)
|
| |
Class for reading a csv file into a table, using given options.
◆ iACsvIO()
◆ fileHeaders()
| const QStringList & iACsvIO::fileHeaders |
( |
| ) |
const |
get the list of columns/headers as it is in the file
◆ loadCSV()
| bool iACsvIO::loadCSV |
( |
iACsvTableCreator & | dstTbl, |
|
|
iACsvConfig const & | params, |
|
|
size_t const | rowCount = std::numeric_limits<size_t>::max() ) |
reads table entries from csv file
◆ outputHeaders()
| const QStringList & iACsvIO::outputHeaders |
( |
| ) |
const |
get list of all headers in result table (including computed columns)
◆ outputMapping()
get mapping in which fields the important values are stored.
This is basically the column mapping of the iACsvConfig used to load the dataset, but adapted / extended to match the created output: When an auto-id is inserted as first column, all indices shift by one to the back; also for computed columns, mappings are inserted.
◆ ColNameAutoID
| const char * iACsvIO::ColNameAutoID = "Auto_ID" |
|
static |
name of the auto ID column (inserted optionally)
◆ ColNameClassID
| const char * iACsvIO::ColNameClassID = "Class_ID" |
|
static |
name of the class ID column (always inserted as last column)
The documentation for this class was generated from the following files: