DelimitedFile Class Reference

The class to parse file with colon-delimited lines.

List of all members.

Public Member Functions

std::string getItem (size_t line, size_t itemIndex) const
 Returns the required delimited item in required line.
size_t getItemCountInLine (size_t line) const
 Returns the number of delimited items in specified line.
size_t getLineCount () const
 The number of non-empty and non-commented lines read from source file.
std::string getRawLine (size_t index) const
 Returns text file line without any translations.
void read (const std::string &fileName)
 Reads data from file and stores it.


Member Function Documentation

std::string DelimitedFile::getItem ( size_t  line,
size_t  itemIndex 
) const

Parameters:
[in] line The number of desired line
[in] itemIndex The number of desired item in specified line

size_t DelimitedFile::getItemCountInLine ( size_t  line  )  const

Parameters:
[in] index The number of a line to count items in

std::string DelimitedFile::getRawLine ( size_t  index  )  const

Parameters:
[in] index The number of a line to return

void DelimitedFile::read ( const std::string &  fileName  ) 

Parameters:
[in] fileName The name of file to read data from


Generated on Thu May 6 16:10:58 2010 for VoiceMan by  doxygen 1.5.9