Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::IO::StdWriter Class Reference

Convenience class for writing to standard output. More...

#include <inkscapestream.h>

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

Public Member Functions

 StdWriter ()
 
 ~StdWriter () override
 
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

Convenience class for writing to standard output.

Definition at line 635 of file inkscapestream.h.

Constructor & Destructor Documentation

◆ StdWriter()

Inkscape::IO::StdWriter::StdWriter ( )

Definition at line 751 of file inkscapestream.cpp.

References outputStream.

◆ ~StdWriter()

Inkscape::IO::StdWriter::~StdWriter ( )
override

Definition at line 760 of file inkscapestream.cpp.

References outputStream.

Member Function Documentation

◆ close()

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

Close the underlying OutputStream.

Reimplemented from Inkscape::IO::BasicWriter.

Definition at line 770 of file inkscapestream.cpp.

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

◆ flush()

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

Flush the underlying OutputStream.

Reimplemented from Inkscape::IO::BasicWriter.

Definition at line 779 of file inkscapestream.cpp.

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

Referenced by close().

◆ put()

void Inkscape::IO::StdWriter::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 788 of file inkscapestream.cpp.

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

Member Data Documentation

◆ outputStream

OutputStream* Inkscape::IO::StdWriter::outputStream
private

Definition at line 654 of file inkscapestream.h.

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


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