All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
openfluid::tools::ProgressiveColumnFileReader Class Reference

#include <tools/ProgressiveColumnFileReader.hpp>

Inheritance diagram for openfluid::tools::ProgressiveColumnFileReader:
openfluid::tools::ProgressiveChronFileReader

List of all members.

Public Member Functions

 ProgressiveColumnFileReader (const std::string &FileName, const std::string &ColSeparators=" \t\r\n")
virtual ~ProgressiveColumnFileReader ()
bool getNextLine (std::string &Line)
bool getNextLine (std::vector< std::string > &Values)
void reset ()
std::string getFileName () const

Protected Attributes

std::string m_FileName

Detailed Description

Progressive reader for column text files


Constructor & Destructor Documentation

openfluid::tools::ProgressiveColumnFileReader::ProgressiveColumnFileReader ( const std::string &  FileName,
const std::string &  ColSeparators = " \t\r\n" 
)

Constructor

Parameters:
[in]FileNamethe file to open
[in]ColSeparatorsa list of columns separators. Default value is " \t\r\n"

Member Function Documentation

Returns the file name

Returns:
the file name

Gets the next line of data in the file, as a single string

Parameters:
[out]Linethe read line
Returns:
true if the next line has been read, false otherwise
bool openfluid::tools::ProgressiveColumnFileReader::getNextLine ( std::vector< std::string > &  Values)

Gets the next line of data in the file, as a vector of strings

Parameters:
[out]Valuesthe vector of read values
Returns:
true if the next line has been read and splitted into a vector of strings, false otherwise

Resets the internal iterator of the file


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines