Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::IO::InputStreamReader Class Reference

Class for placing a Reader on an open InputStream. More...

#include <inkscapestream.h>

Inheritance diagram for Inkscape::IO::InputStreamReader:
Inkscape::IO::BasicReader Inkscape::IO::Reader

Public Member Functions

 InputStreamReader (InputStream &inputStreamSource)
 
int available () override
 Flush the underlying OutputStream.
 
void close () override
 Close the underlying OutputStream.
 
char get () override
 Overloaded to receive its bytes from an InputStream rather than a Reader.
 
- Public Member Functions inherited from Inkscape::IO::BasicReader
 BasicReader (Reader &sourceStream)
 
 ~BasicReader () override=default
 
Glib::ustring readLine () override
 Reads a line of data from the reader.
 
Glib::ustring readWord () override
 Reads a line of data from the reader.
 
const ReaderreadBool (bool &val) override
 
const Readeroperator>> (bool &val) override
 
const ReaderreadShort (short &val) override
 
const Readeroperator>> (short &val) override
 
const ReaderreadUnsignedShort (unsigned short &val) override
 
const Readeroperator>> (unsigned short &val) override
 
const ReaderreadInt (int &val) override
 
const Readeroperator>> (int &val) override
 
const ReaderreadUnsignedInt (unsigned int &val) override
 
const Readeroperator>> (unsigned int &val) override
 
const ReaderreadLong (long &val) override
 
const Readeroperator>> (long &val) override
 
const ReaderreadUnsignedLong (unsigned long &val) override
 
const Readeroperator>> (unsigned long &val) override
 
const ReaderreadFloat (float &val) override
 
const Readeroperator>> (float &val) override
 
const ReaderreadDouble (double &val) override
 
const Readeroperator>> (double &val) override
 
- Public Member Functions inherited from Inkscape::IO::Reader
 Reader ()=default
 Constructor.
 
virtual ~Reader ()=default
 Destructor.
 

Private Attributes

InputStreaminputStream
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::IO::BasicReader
 BasicReader ()
 
- Protected Attributes inherited from Inkscape::IO::BasicReader
Readersource
 

Detailed Description

Class for placing a Reader on an open InputStream.

Definition at line 397 of file inkscapestream.h.

Constructor & Destructor Documentation

◆ InputStreamReader()

Inkscape::IO::InputStreamReader::InputStreamReader ( InputStream inputStreamSource)

Definition at line 343 of file inkscapestream.cpp.

Member Function Documentation

◆ available()

int Inkscape::IO::InputStreamReader::available ( )
overridevirtual

Flush the underlying OutputStream.

Reimplemented from Inkscape::IO::BasicReader.

Definition at line 361 of file inkscapestream.cpp.

References Inkscape::IO::InputStream::available(), and inputStream.

◆ close()

void Inkscape::IO::InputStreamReader::close ( )
overridevirtual

Close the underlying OutputStream.

Reimplemented from Inkscape::IO::BasicReader.

Definition at line 353 of file inkscapestream.cpp.

References Inkscape::IO::InputStream::close(), and inputStream.

◆ get()

char Inkscape::IO::InputStreamReader::get ( )
overridevirtual

Overloaded to receive its bytes from an InputStream rather than a Reader.

Reimplemented from Inkscape::IO::BasicReader.

Definition at line 370 of file inkscapestream.cpp.

References Inkscape::IO::InputStream::get(), and inputStream.

Member Data Documentation

◆ inputStream

InputStream& Inkscape::IO::InputStreamReader::inputStream
private

Definition at line 413 of file inkscapestream.h.

Referenced by available(), close(), and get().


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