CsvReader.h
Go to the documentation of this file.
48 CsvReader(IDataSourceStream* source, char fieldSeparator = ',', const CStringArray& headings = nullptr,
50 : source(source), fieldSeparator(fieldSeparator), userHeadingsProvided(headings), maxLineLength(maxLineLength),
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.
const CStringArray & getHeadings() const
Get headings.
Definition: CsvReader.h:121
CsvReader(IDataSourceStream *source, char fieldSeparator=',', const CStringArray &headings=nullptr, size_t maxLineLength=2048)
Construct a CSV reader.
Definition: CsvReader.h:48
const char * getValue(const char *name)
Get a value from the current row.
Definition: CsvReader.h:95
int getColumn(const char *name)
Get index of column given its name.
Definition: CsvReader.h:105
const char * getValue(unsigned index)
Get a value from the current row.
Definition: CsvReader.h:85