open_iA 2024.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
iACsvIO Class Reference

Class for reading a csv file into a table, using given options. More...

#include <iACsvIO.h>

Public Member Functions

 iACsvIO ()
 
const QStringList & fileHeaders () const
 get the list of columns/headers as it is in the file
 
bool loadCSV (iACsvTableCreator &dstTbl, iACsvConfig const &params, 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 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)
 

Detailed Description

Class for reading a csv file into a table, using given options.

Constructor & Destructor Documentation

◆ iACsvIO()

iACsvIO::iACsvIO ( )

Member Function Documentation

◆ 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()

iAColMapP iACsvIO::outputMapping ( ) 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.

Member Data Documentation

◆ 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: