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

This class is for transforming stream output by a given stylesheet. More...

#include <xsltstream.h>

Inheritance diagram for Inkscape::IO::XsltOutputStream:
Inkscape::IO::BasicOutputStream Inkscape::IO::OutputStream

Public Member Functions

 XsltOutputStream (OutputStream &destination, XsltStyleSheet &stylesheet)
 
 ~XsltOutputStream () override
 
void close () override
 Closes this output stream and releases any system resources associated with this stream.
 
void flush () override
 Flushes this output stream and forces any buffered output bytes to be written out.
 
int put (char ch) override
 Writes the specified byte to this output stream.
 
- Public Member Functions inherited from Inkscape::IO::BasicOutputStream
 BasicOutputStream (OutputStream &destinationStream)
 
 ~BasicOutputStream () override=default
 
- Public Member Functions inherited from Inkscape::IO::OutputStream
 OutputStream ()=default
 Constructor.
 
virtual ~OutputStream ()=default
 Destructor.
 

Private Attributes

XsltStyleSheetstylesheet
 
Glib::ustring outbuf
 
bool flushed
 

Additional Inherited Members

- Protected Attributes inherited from Inkscape::IO::BasicOutputStream
bool closed
 
OutputStreamdestination
 

Detailed Description

This class is for transforming stream output by a given stylesheet.

Definition at line 109 of file xsltstream.h.

Constructor & Destructor Documentation

◆ XsltOutputStream()

Inkscape::IO::XsltOutputStream::XsltOutputStream ( OutputStream destination,
XsltStyleSheet stylesheet 
)

Definition at line 163 of file xsltstream.cpp.

References flushed.

◆ ~XsltOutputStream()

Inkscape::IO::XsltOutputStream::~XsltOutputStream ( )
override

Definition at line 172 of file xsltstream.cpp.

Member Function Documentation

◆ close()

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

Closes this output stream and releases any system resources associated with this stream.

Reimplemented from Inkscape::IO::BasicOutputStream.

Definition at line 181 of file xsltstream.cpp.

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

◆ flush()

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

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

Reimplemented from Inkscape::IO::BasicOutputStream.

Definition at line 191 of file xsltstream.cpp.

References Inkscape::IO::BasicOutputStream::destination, Inkscape::IO::OutputStream::flush(), flushed, outbuf, Inkscape::IO::OutputStream::put(), Inkscape::IO::XsltStyleSheet::stylesheet, and stylesheet.

Referenced by close().

◆ put()

int Inkscape::IO::XsltOutputStream::put ( char  ch)
overridevirtual

Writes the specified byte to this output stream.

Reimplemented from Inkscape::IO::BasicOutputStream.

Definition at line 232 of file xsltstream.cpp.

References outbuf.

Member Data Documentation

◆ flushed

bool Inkscape::IO::XsltOutputStream::flushed
private

Definition at line 130 of file xsltstream.h.

Referenced by flush(), and XsltOutputStream().

◆ outbuf

Glib::ustring Inkscape::IO::XsltOutputStream::outbuf
private

Definition at line 128 of file xsltstream.h.

Referenced by flush(), and put().

◆ stylesheet

XsltStyleSheet& Inkscape::IO::XsltOutputStream::stylesheet
private

Definition at line 126 of file xsltstream.h.

Referenced by flush().


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