Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ThePEG::CFileLineReader Class Reference
CFileLineReader is a wrapper around a standard C FILE stream.
With it one reads one line at the time (with readline()) into an internal buffer from which one can then read as from a standard std::istream with a limited set of operator>> functions. It can be thought of as an std::ifstream where the internal buffer must be filled by hand one line at the time.
Contrary to std::ifstream the CFileLineReader can also handle gipped files and pipes. Gzipped files are automatically handles by a pipe using the
Since CFileLineReader is very close to the standard C FILE stream it is in many cases much faster than eg. reading from lines via std::istringstream.
Constructor & Destructor Documentation
Constructor taking a filename as argument.
Optionally the size len of the line buffer can be specified. If filename ends with
Member Function Documentation
Initialize with a filename.
If filename ends with
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
Undo reading from the current line, ie.
the next read will be from the beginning of the current line. Afterwards the state will be not bad.
Scan forward up and until the first occurrence of the given character.
The documentation for this class was generated from the following file:
Generated on Thu Jun 28 2018 14:42:04 for ThePEG by 1.8.13