
#include <tools/ProgressiveColumnFileReader.hpp>
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 |
Progressive reader for column text files
| openfluid::tools::ProgressiveColumnFileReader::ProgressiveColumnFileReader | ( | const std::string & | FileName, |
| const std::string & | ColSeparators = " \t\r\n" |
||
| ) |
Constructor
| [in] | FileName | the file to open |
| [in] | ColSeparators | a list of columns separators. Default value is " \t\r\n" |
| virtual openfluid::tools::ProgressiveColumnFileReader::~ProgressiveColumnFileReader | ( | ) | [inline, virtual] |
| std::string openfluid::tools::ProgressiveColumnFileReader::getFileName | ( | ) | const [inline] |
Returns the file name
| bool openfluid::tools::ProgressiveColumnFileReader::getNextLine | ( | std::string & | Line | ) |
Gets the next line of data in the file, as a single string
| [out] | Line | the read line |
| bool openfluid::tools::ProgressiveColumnFileReader::getNextLine | ( | std::vector< std::string > & | Values | ) |
Gets the next line of data in the file, as a vector of strings
| [out] | Values | the vector of read values |
Resets the internal iterator of the file
std::string openfluid::tools::ProgressiveColumnFileReader::m_FileName [protected] |
1.7.6.1