Inputs data from a comma delimited file format.
More...
Public Member Functions |
| | DtCsvReader (const std::string &filename) |
| virtual | ~DtCsvReader () |
| virtual bool | readLine () |
| | Read the next line of the file. Returns false if no more lines.
|
| virtual std::string | column (int) const |
| | Returns the string value at the specified column.
|
| virtual int | intVar (int column) const |
| | Returns the field number "pos" as an integer.
|
| virtual void | setSeparator (char newSeparator) |
| virtual char | separator () |
| virtual int | numColumns () const |
| | Returns the number of columns on the line, given the separator.
|
| const std::string & | currLine () const |
Detailed Description
Inputs data from a comma delimited file format.
Constructor & Destructor Documentation
| makVrf::DtCsvReader::DtCsvReader |
( |
const std::string & |
filename | ) |
|
| virtual makVrf::DtCsvReader::~DtCsvReader |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual bool makVrf::DtCsvReader::readLine |
( |
| ) |
|
|
virtual |
Read the next line of the file. Returns false if no more lines.
| virtual std::string makVrf::DtCsvReader::column |
( |
int |
| ) |
const |
|
virtual |
Returns the string value at the specified column.
| virtual int makVrf::DtCsvReader::intVar |
( |
int |
column | ) |
const |
|
virtual |
Returns the field number "pos" as an integer.
validNum indicates if the conversion to an integer was possible.
| virtual void makVrf::DtCsvReader::setSeparator |
( |
char |
newSeparator | ) |
|
|
virtual |
| virtual char makVrf::DtCsvReader::separator |
( |
| ) |
|
|
virtual |
| virtual int makVrf::DtCsvReader::numColumns |
( |
| ) |
const |
|
virtual |
Returns the number of columns on the line, given the separator.
| const std::string & makVrf::DtCsvReader::currLine |
( |
| ) |
const |
|
inline |
Member Data Documentation
| char makVrf::DtCsvReader::mySeparator |
|
protected |
| std::string makVrf::DtCsvReader::myFile |
|
protected |
| std::ifstream makVrf::DtCsvReader::myTS |
|
protected |
| std::string makVrf::DtCsvReader::myCurrLine |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrfGuiCore/csvReader.h