Helios++
Helios software for LiDAR simulations
|
Class defining the strategy to read line by line from a file input stream. More...
#include <LineReadingStrategy.h>
Public Member Functions | |
LineReadingStrategy (ifstream &ifs, long const &maxCharsPerLine) | |
Default constructor for line reading strategy. More... | |
string | read () override |
Read line from text file. More... | |
![]() | |
SimpleReadingStrategy (ifstream &ifs) | |
Default constructor for simple reading strategy. | |
![]() | |
ReadingStrategy ()=default | |
Default constructor for reading strategy. | |
Protected Attributes | |
long const & | maxCharsPerLine |
The maximum number of characters that a line is expected to have. More... | |
char * | buffer = nullptr |
Buffer where the read line is stored. | |
![]() | |
ifstream & | ifs |
Reference to the input file stream to read from. | |
Class defining the strategy to read line by line from a file input stream.
|
inline |
Default constructor for line reading strategy.
|
inlineoverridevirtual |
Read line from text file.
Implements helios::filems::ReadingStrategy< ReadType >.
|
protected |
The maximum number of characters that a line is expected to have.
If a file having lines of more than maxCharsPerLine characters is read, then problems might arise