#include <XspfXmlFormatter.h>
|
void | setOutput (std::basic_ostringstream< XML_Char > &output) |
|
void | writeStart (XML_Char const *ns, XML_Char const *localName, XML_Char const *const *atts, XML_Char const *const *nsRegs=NULL) |
|
void | writeEnd (XML_Char const *ns, XML_Char const *localName) |
|
void | writeHomeStart (XML_Char const *localName, XML_Char const *const *atts, XML_Char const *const *nsRegs=NULL) |
|
void | writeHomeEnd (XML_Char const *localName) |
|
virtual void | writeBody (XML_Char const *text)=0 |
|
virtual void | writeBody (int number)=0 |
|
void | writeCharacterData (XML_Char const *data) |
|
|
static XML_Char const *const | namespaceKey |
| Namespace key pointer.
|
|
Outputs XML.
Definition at line 90 of file XspfXmlFormatter.h.
◆ XspfXmlFormatter() [1/2]
◆ XspfXmlFormatter() [2/2]
Copy constructor.
- Parameters
-
source | Source to copy from |
◆ ~XspfXmlFormatter()
Destroys this formatter and deletes all memory associated with it.
◆ getOutput()
std::basic_ostringstream<XML_Char>* & getOutput |
( |
| ) |
|
|
protected |
Returns the output stream in use.
◆ operator=()
Assignment operator.
- Parameters
-
source | Source to copy from |
◆ setOutput()
void setOutput |
( |
std::basic_ostringstream< XML_Char > & |
output | ) |
|
Associate the formatter with an output accumulator.
- Parameters
-
◆ writeBody() [1/2]
virtual void writeBody |
( |
XML_Char const * |
text | ) |
|
|
pure virtual |
Adds element content.
- Parameters
-
◆ writeBody() [2/2]
virtual void writeBody |
( |
int |
number | ) |
|
|
pure virtual |
Adds element content.
- Parameters
-
◆ writeCharacterData()
void writeCharacterData |
( |
XML_Char const * |
data | ) |
|
Writes well-formed character data to the output accumulator.
- Parameters
-
◆ writeEnd() [1/2]
void writeEnd |
( |
XML_Char const * |
ns, |
|
|
XML_Char const * |
localName |
|
) |
| |
Closes the tag localname
from namespace ns
.
- Parameters
-
ns | Namespace URI |
localName | Local element name |
◆ writeEnd() [2/2]
virtual void writeEnd |
( |
XML_Char const * |
name | ) |
|
|
protectedpure virtual |
Closes the tag name
.
- Parameters
-
name | Name of the tag to close |
◆ writeHomeEnd()
void writeHomeEnd |
( |
XML_Char const * |
localName | ) |
|
Closes the tag localname
from the XSPF namespace.
- Parameters
-
localName | Local element name |
◆ writeHomeStart()
void writeHomeStart |
( |
XML_Char const * |
localName, |
|
|
XML_Char const *const * |
atts, |
|
|
XML_Char const *const * |
nsRegs = NULL |
|
) |
| |
Opens the tag localname
from the XSPF namespace.
- Parameters
-
localName | Local element name |
atts | NULL-terminated list of attributes (key/value pairs) |
nsRegs | NULL-terminated list of namespace registrations (uri/prefix pairs) |
◆ writeStart() [1/2]
void writeStart |
( |
XML_Char const * |
ns, |
|
|
XML_Char const * |
localName, |
|
|
XML_Char const *const * |
atts, |
|
|
XML_Char const *const * |
nsRegs = NULL |
|
) |
| |
Opens the tag localname
from namespace ns
.
- Parameters
-
ns | Namespace URI |
localName | Local element name |
atts | NULL-terminated list of attributes (key/value pairs) |
nsRegs | NULL-terminated list of namespace registrations (uri/prefix pairs) |
◆ writeStart() [2/2]
virtual void writeStart |
( |
XML_Char const * |
name, |
|
|
XML_Char const *const * |
atts |
|
) |
| |
|
protectedpure virtual |
Opens the tag name
and adds the attributes atts
. atts
is not NULL
and *atts
is an alternating list of attribute keys and values. Its length is uneven and the last entry is NULL
.
- Parameters
-
name | Name of the tag to open |
atts | Alternating list of attribute key and value |
◆ writeXmlDeclaration()
virtual void writeXmlDeclaration |
( |
| ) |
|
|
protectedvirtual |
Writes the XML declaration.
The documentation for this class was generated from the following file: