Inkscape
Vector Graphics Editor
|
Class for placing a Writer on an open OutputStream. More...
#include <inkscapestream.h>
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. | |
![]() | |
BasicWriter (Writer &destinationWriter) | |
~BasicWriter () override=default | |
Writer & | printf (char const *fmt,...) override G_GNUC_PRINTF(2 |
Provide printf()-like formatting. | |
Writer Writer & | writeChar (char val) override |
Writes the specified character to this output writer. | |
Writer & | writeUString (const Glib::ustring &val) override |
Writes the specified unicode string to this output writer. | |
Writer & | writeStdString (const std::string &val) override |
Writes the specified standard string to this output writer. | |
Writer & | writeString (const char *str) override |
Writes the specified character string to this output writer. | |
Writer & | writeBool (bool val) override |
Writer & | writeShort (short val) override |
Writer & | writeUnsignedShort (unsigned short val) override |
Writer & | writeInt (int val) override |
Writer & | writeUnsignedInt (unsigned int val) override |
Writer & | writeLong (long val) override |
Writer & | writeUnsignedLong (unsigned long val) override |
Writer & | writeFloat (float val) override |
Writer & | writeDouble (double val) override |
![]() | |
Writer ()=default | |
Constructor. | |
virtual | ~Writer ()=default |
Destructor. | |
Private Attributes | |
OutputStream & | outputStream |
Additional Inherited Members | |
![]() | |
BasicWriter () | |
![]() | |
Writer * | destination |
Class for placing a Writer on an open OutputStream.
Definition at line 610 of file inkscapestream.h.
Inkscape::IO::OutputStreamWriter::OutputStreamWriter | ( | OutputStream & | outputStreamDest | ) |
Definition at line 710 of file inkscapestream.cpp.
|
overridevirtual |
Close the underlying OutputStream.
Reimplemented from Inkscape::IO::BasicWriter.
Definition at line 720 of file inkscapestream.cpp.
References Inkscape::IO::OutputStream::close(), flush(), and outputStream.
Referenced by sp_repr_save_buf(), sp_repr_write_buf(), Inkscape::Extension::Internal::OdfOutput::writeManifest(), and Inkscape::Extension::Internal::OdfOutput::writeMeta().
|
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().
|
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().
|
private |
Definition at line 626 of file inkscapestream.h.