3 #include <filems/read/comps/LineFileReader.h>
4 #include <filems/read/strategies/BufferedReadingStrategy.h>
5 #include <filems/read/strategies/LineReadingStrategy.h>
7 namespace helios {
namespace filems{
38 std::ios_base::openmode
openMode = std::ios_base::in,
Definition: BufferedLineFileReader.h:9
long maxCharsPerLine
The maximum number of characters that a line is expected to have.
Definition: LineFileReader.h:33
size_t bufferSize
The buffer size for the buffered strategy.
Definition: BufferedLineFileReader.h:28
virtual void makeBufferedStrategy()
Define the building of the buffered reading strategy itself.
Definition: BufferedLineFileReader.h:64
virtual void setBufferSize(size_t const bufferSize)
Get the buffer size for the buffered line file reader.
Definition: BufferedLineFileReader.h:87
BufferedLineFileReader(string const &path, std::ios_base::openmode openMode=std::ios_base::in, long const maxCharsPerLine=8192, size_t const bufferSize=100000)
Default constructor for buffered line file reader.
Definition: BufferedLineFileReader.h:36
virtual size_t getBufferSize()
Obtain the buffer size for the buffered line file reader.
Definition: BufferedLineFileReader.h:80
void makeStrategy() override
Build a buffered line reading strategy for the buffered line file reader.
Definition: BufferedLineFileReader.h:56
LineReadingStrategy lrs
The line reading strategy to be used for each single reading operation.
Definition: BufferedLineFileReader.h:24
shared_ptr< ReadingStrategy< ReadType > > readingStrategy
The reading strategy to be used by the file reader.
Definition: FileReader.h:32
string path
Path to the file to be read.
Definition: FileReader.h:27
Class supporting line by line reading of text files.
Definition: LineFileReader.h:18
long maxCharsPerLine
The maximum number of characters that a line is expected to have.
Definition: LineFileReader.h:33
Class defining the strategy to read line by line from a file input stream.
Definition: LineReadingStrategy.h:21
ifstream ifs
The input file stream to read from.
Definition: SimpleFileReader.h:37
ios_base::openmode openMode
The open mode flags for the input file stream.
Definition: SimpleFileReader.h:42