![]() |
VR-Link API Documentation for HLA 1.3
|
Inputs data from a comma delimited file format. More...
Collaboration diagram for DtCSVReader:Public Member Functions | |
| DtCSVReader (const DtFilename &filename) | |
| virtual | ~DtCSVReader () |
| virtual bool | readLine () |
| Read the next line of the file. Returns false if no more lines. More... | |
| virtual DtString | stringVar (int start, int end) const |
| Returns one or more fields as a string. More... | |
| virtual int | intVar (int pos, bool *validNum) const |
| Returns the field number "pos" as an integer. More... | |
| virtual void | setSeparator (char newSeparator) |
| virtual char | separator () |
| virtual int | numColumns () const |
| Returns the number of columns on the line, given the separator. More... | |
| const DtString & | currLine () const |
Protected Attributes | |
| char | mySeparator |
| DtFilename | myFile |
| std::ifstream | myTS |
| bool | myValidFile |
| DtString | myCurrLine |
Inputs data from a comma delimited file format.
| DtCSVReader::DtCSVReader | ( | const DtFilename & | filename | ) |
|
virtual |
|
inline |
|
virtual |
Returns the field number "pos" as an integer.
validNum indicates if the conversion to an integer was possible.
|
virtual |
Returns the number of columns on the line, given the separator.
|
virtual |
Read the next line of the file. Returns false if no more lines.
|
virtual |
|
virtual |
|
virtual |
Returns one or more fields as a string.
See QTextStream::section() for details.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |