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

This class and its descendants are for unicode character-oriented output. More...

#include <inkscapestream.h>

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

Public Member Functions

 BasicWriter (Writer &destinationWriter)
 
 ~BasicWriter () override=default
 
void close () override
 Closes this writer and releases any system resources associated with this writer.
 
void flush () override
 Flushes this output stream and forces any buffered output bytes to be written out.
 
void put (char ch) override
 Writes the specified byte to this output writer.
 
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.
 

Protected Member Functions

 BasicWriter ()
 

Protected Attributes

Writerdestination
 

Detailed Description

This class and its descendants are for unicode character-oriented output.

Definition at line 516 of file inkscapestream.h.

Constructor & Destructor Documentation

◆ BasicWriter() [1/2]

Inkscape::IO::BasicWriter::BasicWriter ( Writer destinationWriter)

Definition at line 438 of file inkscapestream.cpp.

References destination.

◆ ~BasicWriter()

Inkscape::IO::BasicWriter::~BasicWriter ( )
overridedefault

◆ BasicWriter() [2/2]

Inkscape::IO::BasicWriter::BasicWriter ( )
inlineprotected

Definition at line 568 of file inkscapestream.h.

Member Function Documentation

◆ close()

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

Closes this writer and releases any system resources associated with this writer.

Implements Inkscape::IO::Writer.

Reimplemented in Inkscape::IO::OutputStreamWriter, and Inkscape::IO::StdWriter.

Definition at line 447 of file inkscapestream.cpp.

References Inkscape::IO::Writer::close(), and destination.

◆ flush()

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

Flushes this output stream and forces any buffered output bytes to be written out.

Implements Inkscape::IO::Writer.

Reimplemented in Inkscape::IO::OutputStreamWriter, and Inkscape::IO::StdWriter.

Definition at line 457 of file inkscapestream.cpp.

References destination, and Inkscape::IO::Writer::flush().

◆ printf()

Writer & Inkscape::IO::BasicWriter::printf ( char const *  fmt,
  ... 
)
overridevirtual

◆ put()

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

Writes the specified byte to this output writer.

Implements Inkscape::IO::Writer.

Reimplemented in Inkscape::IO::OutputStreamWriter, and Inkscape::IO::StdWriter.

Definition at line 466 of file inkscapestream.cpp.

References destination, and Inkscape::IO::Writer::put().

Referenced by writeChar(), and writeStdString().

◆ writeBool()

Writer & Inkscape::IO::BasicWriter::writeBool ( bool  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 537 of file inkscapestream.cpp.

References writeString().

◆ writeChar()

Writer & Inkscape::IO::BasicWriter::writeChar ( char  val)
overridevirtual

Writes the specified character to this output writer.

Implements Inkscape::IO::Writer.

Definition at line 490 of file inkscapestream.cpp.

References put().

◆ writeDouble()

Writer & Inkscape::IO::BasicWriter::writeDouble ( double  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 648 of file inkscapestream.cpp.

References buf, writeStdString(), and writeString().

◆ writeFloat()

Writer & Inkscape::IO::BasicWriter::writeFloat ( float  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 630 of file inkscapestream.cpp.

References buf, writeStdString(), and writeString().

◆ writeInt()

Writer & Inkscape::IO::BasicWriter::writeInt ( int  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 578 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeLong()

Writer & Inkscape::IO::BasicWriter::writeLong ( long  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 604 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeShort()

Writer & Inkscape::IO::BasicWriter::writeShort ( short  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 550 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeStdString()

Writer & Inkscape::IO::BasicWriter::writeStdString ( const std::string &  val)
overridevirtual

Writes the specified standard string to this output writer.

Implements Inkscape::IO::Writer.

Definition at line 509 of file inkscapestream.cpp.

References put().

Referenced by writeDouble(), writeFloat(), writeString(), and writeUString().

◆ writeString()

Writer & Inkscape::IO::BasicWriter::writeString ( const char *  str)
overridevirtual

◆ writeUnsignedInt()

Writer & Inkscape::IO::BasicWriter::writeUnsignedInt ( unsigned int  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 591 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeUnsignedLong()

Writer & Inkscape::IO::BasicWriter::writeUnsignedLong ( unsigned long  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 617 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeUnsignedShort()

Writer & Inkscape::IO::BasicWriter::writeUnsignedShort ( unsigned short  val)
overridevirtual

Implements Inkscape::IO::Writer.

Definition at line 565 of file inkscapestream.cpp.

References buf, and writeString().

◆ writeUString()

Writer & Inkscape::IO::BasicWriter::writeUString ( const Glib::ustring &  val)
overridevirtual

Writes the specified unicode string to this output writer.

Implements Inkscape::IO::Writer.

Definition at line 500 of file inkscapestream.cpp.

References writeStdString().

Referenced by Inkscape::Extension::Internal::OdfOutput::writeMeta().

Member Data Documentation

◆ destination

Writer* Inkscape::IO::BasicWriter::destination
protected

Definition at line 566 of file inkscapestream.h.

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


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