MPD  0.20.18
Public Member Functions
TextInputStream Class Reference

#include <TextInputStream.hxx>

Public Member Functions

 TextInputStream (InputStreamPtr &&_is)
 Wraps an existing InputStream object into a TextInputStream, to read its contents as text lines. More...
 
 ~TextInputStream ()
 
 TextInputStream (const TextInputStream &)=delete
 
TextInputStreamoperator= (const TextInputStream &)=delete
 
InputStreamPtr && StealInputStream ()
 
char * ReadLine ()
 Reads the next line from the stream with newline character stripped. More...
 

Detailed Description

Definition at line 26 of file TextInputStream.hxx.

Constructor & Destructor Documentation

◆ TextInputStream() [1/2]

TextInputStream::TextInputStream ( InputStreamPtr &&  _is)
explicit

Wraps an existing InputStream object into a TextInputStream, to read its contents as text lines.

Parameters
_isan open InputStream object

◆ ~TextInputStream()

TextInputStream::~TextInputStream ( )

◆ TextInputStream() [2/2]

TextInputStream::TextInputStream ( const TextInputStream )
delete

Member Function Documentation

◆ operator=()

TextInputStream& TextInputStream::operator= ( const TextInputStream )
delete

◆ ReadLine()

char* TextInputStream::ReadLine ( )

Reads the next line from the stream with newline character stripped.

Returns
a pointer to the line, or nullptr on end-of-file or error

◆ StealInputStream()

InputStreamPtr&& TextInputStream::StealInputStream ( )
inline

Definition at line 43 of file TextInputStream.hxx.


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