Class supporting line by line reading of text files.
More...
#include <LineFileReader.h>
|
| LineFileReader (string const &path, std::ios_base::openmode openMode=std::ios_base::in, long const maxCharsPerLine=8192, bool const constructStrategy=true) |
| Default constructor for line file reader. More...
|
|
virtual long | getMaxCharsPerLine () |
| Obtain the maximum number of characters per line. More...
|
|
virtual void | setMaxCharsPerLine (long const maxCharsPerLine) |
| Set the maximum number of characters per line and update strategy accordingly. More...
|
|
| SimpleFileReader (string const &path, ios_base::openmode openMode=ios_base::in) |
| Default constructor for simple file reader. More...
|
|
string | read () override |
| Read from file simply by applying the reading strategy. Therefore, there is no concurrency handling mechanism and usage of simple file reader is not thread safe. More...
|
|
void | setPath (string const &path) override |
| Set the path to the file to be read, also opening the input stream for the new file and updating the strategy. It assures the previous input file stream is closed before opening the new one. More...
|
|
| FileReader (string const &path) |
| Default constructor for file reader. More...
|
|
virtual string | getPath () const |
| Obtain the path to the file to be read. More...
|
|
Class supporting line by line reading of text files.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- See also
- filems::SimpleFileReader
-
filems::LineReadingStrategy
◆ LineFileReader()
helios::filems::LineFileReader::LineFileReader |
( |
string const & |
path, |
|
|
std::ios_base::openmode |
openMode = std::ios_base::in , |
|
|
long const |
maxCharsPerLine = 8192 , |
|
|
bool const |
constructStrategy = true |
|
) |
| |
|
inline |
◆ getMaxCharsPerLine()
virtual long helios::filems::LineFileReader::getMaxCharsPerLine |
( |
| ) |
|
|
inlinevirtual |
◆ makeStrategy()
void helios::filems::LineFileReader::makeStrategy |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ setMaxCharsPerLine()
virtual void helios::filems::LineFileReader::setMaxCharsPerLine |
( |
long const |
maxCharsPerLine | ) |
|
|
inlinevirtual |
◆ maxCharsPerLine
long helios::filems::LineFileReader::maxCharsPerLine |
|
protected |
The documentation for this class was generated from the following file: