Internals of CSVReader.
More...
Internals of CSVReader.
Only maintainers and those looking to extend the parser should read this.
◆ read_csv()
Read a chunk of CSV data.
- Note
- This method is meant to be run on its own thread. Only one
read_csv() thread should be active at a time.
- See also
- CSVReader::read_csv_worker
-
CSVReader::read_row()
Definition at line 82 of file csv_reader.cpp.
◆ set_col_names()
| void csv::CSVReader::set_col_names |
( |
const std::vector< std::string > & |
names | ) |
|
|
protected |
Sets this reader's column names and associated data.
Install the active column names for this reader.
Definition at line 66 of file csv_reader.cpp.
◆ _format
◆ _n_rows
| size_t csv::CSVReader::_n_rows = 0 |
|
protected |
How many rows (minus header) have been read so far.
Definition at line 328 of file csv_reader.hpp.
◆ col_names
Pointer to a object containing column information.
Definition at line 312 of file csv_reader.hpp.
◆ n_cols
| size_t csv::CSVReader::n_cols = 0 |
|
protected |
◆ owned_stream
| std::unique_ptr<std::istream> csv::CSVReader::owned_stream = nullptr |
|
protected |
Optional owned stream used by two paths: 1) Emscripten filename-constructor fallback to stream parsing 2) Opt-in ownership constructor taking std::unique_ptr<std::istream>
Definition at line 325 of file csv_reader.hpp.
◆ parser
Helper class which actually does the parsing.
Definition at line 315 of file csv_reader.hpp.
◆ records