|
open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
class for reading a csv into a table, using given options More...
#include <iACsvIO.h>
Public Member Functions | |
| iACsvIO () | |
| const QStringList & | getFileHeaders () const |
| get the list of columns/headers as it is in the file | |
| const QStringList & | getOutputHeaders () const |
| get list of all headers in result table (including computed columns) | |
| QSharedPointer< QMap< uint, uint > > | getOutputMapping () const |
| get mapping in which fields the important values are stored. | |
| bool | loadCSV (iACsvTableCreator &dstTbl, iACsvConfig const ¶ms, size_t const rowCount=std::numeric_limits< size_t >::max()) |
| reads table entries from csv file | |
Static Public Attributes | |
| 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 into a table, using given options
| iACsvIO::iACsvIO | ( | ) |
| const QStringList & iACsvIO::getFileHeaders | ( | ) | const |
get the list of columns/headers as it is in the file
| const QStringList & iACsvIO::getOutputHeaders | ( | ) | const |
get list of all headers in result table (including computed columns)
| QSharedPointer< QMap< uint, uint > > iACsvIO::getOutputMapping | ( | ) | const |
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.
| bool iACsvIO::loadCSV | ( | iACsvTableCreator & | dstTbl, |
| iACsvConfig const & | params, | ||
| size_t const | rowCount = std::numeric_limits<size_t>::max() |
||
| ) |
reads table entries from csv file
|
static |
name of the auto ID column (inserted optionally)
|
static |
name of the class ID column (always inserted as last column)