molecular
Public Member Functions | List of all members
molecular::util::TextReadStream< Storage > Class Template Reference

Reads a file line by line. More...

#include <TextStream.h>

Inheritance diagram for molecular::util::TextReadStream< Storage >:
molecular::util::TextReadStreamBase molecular::util::TextReadStreamBase

Public Member Functions

 TextReadStream (Storage &storage)
 
char * GetNextLine () override
 Reads a line and returns it. More...
 
 TextReadStream (Storage &storage)
 
char * GetNextLine () override
 Reads a line and returns it. More...
 
- Public Member Functions inherited from molecular::util::TextReadStreamBase
virtual ~TextReadStreamBase ()=default
 
virtual ~TextReadStreamBase ()
 

Detailed Description

template<class Storage>
class molecular::util::TextReadStream< Storage >

Reads a file line by line.

Constructor & Destructor Documentation

template<class Storage>
molecular::util::TextReadStream< Storage >::TextReadStream ( Storage &  storage)
inline
template<class Storage>
molecular::util::TextReadStream< Storage >::TextReadStream ( Storage &  storage)
inline

Member Function Documentation

template<class Storage>
char* molecular::util::TextReadStream< Storage >::GetNextLine ( )
inlineoverridevirtual

Reads a line and returns it.

Returns
Pointer to an internal storage of the line, which is only valid until the next call to GetNextLine(). Returns nullptr if the storage is at its end.

Implements molecular::util::TextReadStreamBase.

template<class Storage>
char* molecular::util::TextReadStream< Storage >::GetNextLine ( )
inlineoverridevirtual

Reads a line and returns it.

Returns
Pointer to an internal storage of the line, which is only valid until the next call to GetNextLine(). Returns nullptr if the storage is at its end.

Implements molecular::util::TextReadStreamBase.


The documentation for this class was generated from the following file: