libxspf  1.2.0
Public Member Functions | Protected Member Functions | List of all members
XspfExtensionWriter Class Referenceabstract

#include <XspfExtensionWriter.h>

Inheritance diagram for XspfExtensionWriter:
Inheritance graph
[legend]

Public Member Functions

 XspfExtensionWriter (XspfExtension const *extension, XspfXmlFormatter *output, XML_Char const *baseUri)
 
 XspfExtensionWriter (XspfExtensionWriter const &source)
 
XspfExtensionWriteroperator= (XspfExtensionWriter const &source)
 
virtual ~XspfExtensionWriter ()
 
void write ()
 

Protected Member Functions

virtual void writeExtensionBody ()=0
 
virtual XML_Char const *const * getNamespaceRegs ()
 
XspfExtension const * getExtension ()
 
XspfXmlFormatter *& getOutput ()
 
XML_Char const * getBaseUri () const
 

Detailed Description

Writes a XspfExtension to a XspfXmlFormatter.

Definition at line 64 of file XspfExtensionWriter.h.

Constructor & Destructor Documentation

◆ XspfExtensionWriter() [1/2]

XspfExtensionWriter ( XspfExtension const *  extension,
XspfXmlFormatter output,
XML_Char const *  baseUri 
)

Creates a new XspfExtensionWriter object.

Parameters
extensionExtension to write
outputOutput formatter to write to
baseUriAbsolute base URI to reduce URIs against, is NULL if only absolute URIs are wanted

◆ XspfExtensionWriter() [2/2]

Copy constructor.

Parameters
sourceSource to copy from

◆ ~XspfExtensionWriter()

virtual ~XspfExtensionWriter ( )
virtual

Destroys this XspfExtensionWriter object and deletes all memory associated with it.

Member Function Documentation

◆ getBaseUri()

XML_Char const* getBaseUri ( ) const
protected

Returns the base URI in use.

Returns
Base URI, can be NULL

◆ getExtension()

XspfExtension const* getExtension ( )
protected

Returns the extension to be written.

Returns
Extension

◆ getNamespaceRegs()

virtual XML_Char const* const* getNamespaceRegs ( )
protectedvirtual

Returns a list of the namespaces used inside the extension body. Moreprecisely this is an alternating NULL-terminated list of URI/prefix pairs.

Returns
List of URI/prefix pairs

◆ getOutput()

XspfXmlFormatter* & getOutput ( )
protected

Gives access to the XML formatter in use.

Returns
XML formatter reference

◆ operator=()

XspfExtensionWriter& operator= ( XspfExtensionWriter const &  source)

Assignment operator.

Parameters
sourceSource to copy from

◆ write()

void write ( )

Writes the associated extension to the output formater.

◆ writeExtensionBody()

virtual void writeExtensionBody ( )
protectedpure virtual

Writes the extension body.


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