CsvReader/src/include/CSV/Reader.h
Go to the documentation of this file.
43 Reader(IDataSourceStream* source, const Options& options, const CStringArray& headings = nullptr);
52 Reader(IDataSourceStream* source, char fieldSeparator = ',', const CStringArray& headings = nullptr,
bool readRow(IDataSourceStream &source)
Read a single data row using data from provided DataSourceStream.
const Cursor & getCursor() const
Get cursor position for current row.
Definition: Parser.h:181
const char * getValue(unsigned index) const
Get a value from the current row.
Definition: CsvReader/src/include/CSV/Reader.h:98
Reader(IDataSourceStream *source, char fieldSeparator=',', const CStringArray &headings=nullptr, uint16_t maxLineLength=2048)
Construct a CSV reader.
Definition: CsvReader/src/include/CSV/Reader.h:52
unsigned count() const
Get number of columns.
Definition: CsvReader/src/include/CSV/Reader.h:86
void reset()
Reset reader to start of CSV file.
Definition: CsvReader/src/include/CSV/Reader.h:69
const CStringArray & getHeadings() const
Get headings.
Definition: CsvReader/src/include/CSV/Reader.h:134
Reader(IDataSourceStream *source, const Options &options, const CStringArray &headings=nullptr)
Construct a CSV reader.
int getColumn(const char *name) const
Get index of column given its name.
Definition: CsvReader/src/include/CSV/Reader.h:118
const char * getValue(const char *name) const
Get a value from the current row.
Definition: CsvReader/src/include/CSV/Reader.h:108
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:22
int indexOf(const char *str, bool ignoreCase=true) const
Find the given string and return its index.
Definition: Parser.h:27
Contains location details of the current record in the source stream.
Definition: Parser.h:31
1.9.1