![]() |
VR-Forces 4.0.4 Class Documentation
|
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 |
Protected Attributes | |
| char | mySeparator |
| std::string | myFile |
| std::ifstream | myTS |
| std::string | myCurrLine |
Inputs data from a comma delimited file format.
| makVrf::DtCSVReader::DtCSVReader | ( | const std::string & | filename | ) |
| virtual makVrf::DtCSVReader::~DtCSVReader | ( | ) | [virtual] |
| 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 & DtCSVReader::currLine | ( | ) | const [inline] |
References myCurrLine.
char makVrf::DtCSVReader::mySeparator [protected] |
std::string makVrf::DtCSVReader::myFile [protected] |
std::ifstream makVrf::DtCSVReader::myTS [protected] |
std::string makVrf::DtCSVReader::myCurrLine [protected] |
Referenced by currLine().