VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrf::DtCsvReader Class Reference

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

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

References myCurrLine.

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

Referenced by currLine().


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)