Logo
Reference manual - version ored_version
Public Member Functions | List of all members
CSVFileReader Class Reference
+ Inheritance diagram for CSVFileReader:

Public Member Functions

 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')
 
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 &quoteCharacters="\"", const char eolMarker='\n')
 
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
 

Constructor & Destructor Documentation

◆ CSVFileReader()

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

Member Function Documentation

◆ close()

void close ( )
overridevirtual

Close the file

Reimplemented from CSVReader.