#include <ored/utilities/csvfilereader.hpp>
Public Member Functions | |
CSVFileReader (const std::string &fileName, const bool firstLineContainsHeaders, const std::string &delimiters=",;\t", const std::string &escapeCharacters="\\", const std::string "eCharacters="\"", const char eolMarker='\n') | |
void | close () override |
Public Member Functions inherited from CSVReader | |
CSVReader (const bool firstLineContainsHeaders, const std::string &delimiters=",;\t", const std::string &escapeCharacters="\\", const std::string "eCharacters="\"", const char eolMarker='\n') | |
virtual | ~CSVReader () |
void | setStream (std::istream *stream) |
const std::vector< std::string > & | fields () const |
const bool | hasField (const std::string &field) const |
Size | numberOfColumns () const |
bool | next () |
Size | currentLine () const |
std::string | get (const std::string &field) const |
std::string | get (const Size column) const |
virtual void | close () |
Private Attributes | |
const std::string | fileName_ |
std::ifstream * | file_ |
Definition at line 76 of file csvfilereader.hpp.
CSVFileReader | ( | const std::string & | fileName, |
const bool | firstLineContainsHeaders, | ||
const std::string & | delimiters = ",;\t" , |
||
const std::string & | escapeCharacters = "\\" , |
||
const std::string & | quoteCharacters = "\"" , |
||
const char | eolMarker = '\n' |
||
) |
Ctor
Definition at line 118 of file csvfilereader.cpp.
|
overridevirtual |
Close the file
Reimplemented from CSVReader.
Definition at line 133 of file csvfilereader.cpp.
|
private |
Definition at line 86 of file csvfilereader.hpp.
|
private |
Definition at line 87 of file csvfilereader.hpp.