![]() |
VR-Forces Developer's Guide
|
Inputs data from a comma delimited file format.
Public Member Functions | |
| DtCsvReader (const std::string &filename) | |
| virtual | ~DtCsvReader () |
| virtual bool | readLine () |
| virtual std::string | column (int) const |
| virtual int | intVar (int column) const |
| virtual void | setSeparator (char newSeparator) |
| virtual char | separator () |
| virtual int | numColumns () const |
| const std::string & | currLine () const |
Protected Attributes | |
| char | mySeparator |
| std::string | myFile |
| std::ifstream | myTS |
| std::string | myCurrLine |
| makVrf::DtCsvReader::DtCsvReader | ( | const std::string & | filename | ) |
|
virtual |
|
virtual |
Read the next line of the file. Returns false if no more lines.
|
virtual |
Returns the string value at the specified column.
Returns the field number "pos" as an integer. validNum indicates if the conversion to an integer was possible.
|
virtual |
|
virtual |
|
virtual |
Returns the number of columns on the line, given the separator.
|
inline |
References myCurrLine.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by currLine().