Vince's CSV Parser
|
Internals of CSVReader. More...
Functions | |
void | csv::CSVReader::set_col_names (const std::vector< std::string > &) |
Sets this reader's column names and associated data. More... | |
CSV Settings | |
CSVFormat | csv::CSVReader::_format |
Parser State | |
internals::ColNamesPtr | csv::CSVReader::col_names = std::make_shared<internals::ColNames>() |
Pointer to a object containing column information. | |
std::unique_ptr< internals::IBasicCSVParser > | csv::CSVReader::parser = nullptr |
Helper class which actually does the parsing. | |
std::unique_ptr< RowCollection > | csv::CSVReader::records {new RowCollection(100)} |
Queue of parsed CSV rows. | |
size_t | csv::CSVReader::n_cols = 0 |
The number of columns in this CSV. | |
size_t | csv::CSVReader::_n_rows = 0 |
How many rows (minus header) have been read so far. | |
Multi-Threaded File Reading Functions | |
bool | csv::CSVReader::read_csv (size_t bytes=internals::ITERATION_CHUNK_SIZE) |
Read a chunk of CSV data. More... | |
Internals of CSVReader.
Only maintainers and those looking to extend the parser should read this.
|
protected |
Read a chunk of CSV data.
read_csv()
thread should be active at a time.[in] | bytes | Number of bytes to read. |
Definition at line 241 of file csv_reader.cpp.
|
protected |
Sets this reader's column names and associated data.
[in] | names | Column names |
Definition at line 224 of file csv_reader.cpp.