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

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

#include <xsltstream.h>

Inheritance diagram for Inkscape::IO::XsltInputStream:
Inkscape::IO::BasicInputStream Inkscape::IO::InputStream

Public Member Functions

 XsltInputStream (InputStream &xmlSource, XsltStyleSheet &stylesheet)
 
 ~XsltInputStream () override
 
int available () override
 Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
 
void close () override
 Closes this input stream and releases any system resources associated with the stream.
 
int get () override
 Reads the next byte of data from the input stream.
 
- Public Member Functions inherited from Inkscape::IO::BasicInputStream
 BasicInputStream (InputStream &sourceStream)
 
 ~BasicInputStream () override=default
 
- Public Member Functions inherited from Inkscape::IO::InputStream
 InputStream ()=default
 Constructor.
 
virtual ~InputStream ()=default
 Destructor.
 

Private Attributes

XsltStyleSheetstylesheet
 
xmlChar * outbuf
 
int outsize
 
int outpos
 

Additional Inherited Members

- Protected Attributes inherited from Inkscape::IO::BasicInputStream
bool closed
 
InputStreamsource
 

Detailed Description

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

Definition at line 73 of file xsltstream.h.

Constructor & Destructor Documentation

◆ XsltInputStream()

Inkscape::IO::XsltInputStream::XsltInputStream ( InputStream xmlSource,
XsltStyleSheet stylesheet 
)

◆ ~XsltInputStream()

Inkscape::IO::XsltInputStream::~XsltInputStream ( )
override

Definition at line 113 of file xsltstream.cpp.

References outbuf.

Member Function Documentation

◆ available()

int Inkscape::IO::XsltInputStream::available ( )
overridevirtual

Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.

Reimplemented from Inkscape::IO::BasicInputStream.

Definition at line 123 of file xsltstream.cpp.

References outpos, and outsize.

◆ close()

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

Closes this input stream and releases any system resources associated with the stream.

Reimplemented from Inkscape::IO::BasicInputStream.

Definition at line 133 of file xsltstream.cpp.

References Inkscape::IO::BasicInputStream::closed.

◆ get()

int Inkscape::IO::XsltInputStream::get ( )
overridevirtual

Reads the next byte of data from the input stream.

-1 if EOF

Reimplemented from Inkscape::IO::BasicInputStream.

Definition at line 141 of file xsltstream.cpp.

References Inkscape::IO::BasicInputStream::closed, outbuf, outpos, and outsize.

Member Data Documentation

◆ outbuf

xmlChar* Inkscape::IO::XsltInputStream::outbuf
private

Definition at line 93 of file xsltstream.h.

Referenced by get(), XsltInputStream(), and ~XsltInputStream().

◆ outpos

int Inkscape::IO::XsltInputStream::outpos
private

Definition at line 95 of file xsltstream.h.

Referenced by available(), get(), and XsltInputStream().

◆ outsize

int Inkscape::IO::XsltInputStream::outsize
private

Definition at line 94 of file xsltstream.h.

Referenced by available(), get(), and XsltInputStream().

◆ stylesheet

XsltStyleSheet& Inkscape::IO::XsltInputStream::stylesheet
private

Definition at line 91 of file xsltstream.h.

Referenced by XsltInputStream().


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