Skyward boardcore
|
Iterable parser of CSV files. More...
#include <CSVReader.h>
Public Member Functions | |
CSVParser (const char *fileName, bool hasHeader=false) | |
~CSVParser () | |
CSVIterator< Data > | begin () |
CSVIterator< Data > | end () |
void | close () |
std::vector< Data > | collect () |
Iterable parser of CSV files.
If the CSV file has an header row, you must specify true as the second parameter in the constructor.
Given the file name, reads the contents as elements of type Data. Can be used with CSVIterator to iterate through all the CSV rows. You can retrieve all data inside the file as a vector with collect().
Data | Data type contained in the CSV file. Must implement the >> stream operator. |
Definition at line 137 of file CSVReader.h.
|
inline |
Definition at line 140 of file CSVReader.h.
|
inline |
Definition at line 151 of file CSVReader.h.
|
inline |
Definition at line 153 of file CSVReader.h.
|
inline |
Definition at line 157 of file CSVReader.h.
|
inline |
Definition at line 159 of file CSVReader.h.
|
inline |
Definition at line 155 of file CSVReader.h.