Inheritance diagram for CP_XMLWriter:
Public Member Functions | |
Constructor / Destructor | |
CP_XMLWriter (CP_OutStream *inOutStream, const CP_String &inXMLVersion=CP_String("1.0"), const CP_String &inXMLEncoding=CP_String("UTF-8")) | |
Constructor. | |
virtual | ~CP_XMLWriter () |
Destructor. | |
Getters | |
CP_OutStream * | GetOutputStream () |
Elements | |
void | SetRootElement (CP_XMLWriter_Element *inRootElement) |
Output | |
bool | WriteAll () |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
virtual void | WriteHeader () |
virtual void | WriteTrailer () |
Protected Attributes | |
CP_OutStream * | fOutStream |
CP_String | fXMLVersion |
CP_String | fXMLEncoding |
CP_XMLWriter_Element * | fRootElement |
bool | fRootCreated |
|
Constructor.
|
|
Destructor.
|
|
|
|
Sets the root element for the XML data.
|
|
Writes all of the data for this document to the output stream.
|
|
Write inNumberBytes from the buffer to our output stream. You normally don't call this, as it is called from each CP_XMLWriter_Element to write its data to our stream.
|
|
Write the header for the XML document. This contains the version and encoding information.
|
|
Write the trailer for the XML document. This will be the trailer for the root element.
|
|
|
|
The CP_OutStream object that we will write the data to. This can be either a CP_HandleBlock or CP_File out stream. |
|
The version of the XML data -- currently should be 1.0. |
|
The encoding that the XML data is written in. |
|
The root element for the XML data. |