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

Class for placing a Writer on an open OutputStream. More...

#include <inkscapestream.h>

Inheritance diagram for Inkscape::IO::OutputStreamWriter:
Inkscape::IO::BasicWriter Inkscape::IO::Writer

Public Member Functions

 OutputStreamWriter (OutputStream &outputStreamDest)
 
void close () override
 Close the underlying OutputStream.
 
void flush () override
 Flush the underlying OutputStream.
 
void put (char ch) override
 Overloaded to redirect the output chars from the next Writer in the chain to an OutputStream instead.
 
- Public Member Functions inherited from Inkscape::IO::BasicWriter
 BasicWriter (Writer &destinationWriter)
 
 ~BasicWriter () override=default
 
Writerprintf (char const *fmt,...) override G_GNUC_PRINTF(2
 Provide printf()-like formatting.
 
Writer WriterwriteChar (char val) override
 Writes the specified character to this output writer.
 
WriterwriteUString (const Glib::ustring &val) override
 Writes the specified unicode string to this output writer.
 
WriterwriteStdString (const std::string &val) override
 Writes the specified standard string to this output writer.
 
WriterwriteString (const char *str) override
 Writes the specified character string to this output writer.
 
WriterwriteBool (bool val) override
 
WriterwriteShort (short val) override
 
WriterwriteUnsignedShort (unsigned short val) override
 
WriterwriteInt (int val) override
 
WriterwriteUnsignedInt (unsigned int val) override
 
WriterwriteLong (long val) override
 
WriterwriteUnsignedLong (unsigned long val) override
 
WriterwriteFloat (float val) override
 
WriterwriteDouble (double val) override
 
- Public Member Functions inherited from Inkscape::IO::Writer
 Writer ()=default
 Constructor.
 
virtual ~Writer ()=default
 Destructor.
 

Private Attributes

OutputStreamoutputStream
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::IO::BasicWriter
 BasicWriter ()
 
- Protected Attributes inherited from Inkscape::IO::BasicWriter
Writerdestination
 

Detailed Description

Class for placing a Writer on an open OutputStream.

Definition at line 610 of file inkscapestream.h.

Constructor & Destructor Documentation

◆ OutputStreamWriter()

Inkscape::IO::OutputStreamWriter::OutputStreamWriter ( OutputStream outputStreamDest)

Definition at line 710 of file inkscapestream.cpp.

Member Function Documentation

◆ close()

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

◆ flush()

void Inkscape::IO::OutputStreamWriter::flush ( )
overridevirtual

Flush the underlying OutputStream.

Reimplemented from Inkscape::IO::BasicWriter.

Definition at line 729 of file inkscapestream.cpp.

References Inkscape::IO::OutputStream::flush(), and outputStream.

Referenced by close().

◆ put()

void Inkscape::IO::OutputStreamWriter::put ( char  ch)
overridevirtual

Overloaded to redirect the output chars from the next Writer in the chain to an OutputStream instead.

Reimplemented from Inkscape::IO::BasicWriter.

Definition at line 738 of file inkscapestream.cpp.

References outputStream, and Inkscape::IO::OutputStream::put().

Member Data Documentation

◆ outputStream

OutputStream& Inkscape::IO::OutputStreamWriter::outputStream
private

Definition at line 626 of file inkscapestream.h.

Referenced by close(), flush(), and put().


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