TiXmlPrinter Class Reference
Inheritance diagram for TiXmlPrinter:
Detailed DescriptionPrint to memory functionality. The TiXmlPrinter is useful when you need to:
When constructed, the TiXmlPrinter is in its default "pretty printing" mode. Before calling Accept() you can call methods to control the printing of the XML document. After TiXmlNode::Accept() is called, the printed document can be accessed via the CStr(), Str(), and Size() methods. TiXmlPrinter uses the Visitor API. TiXmlPrinter printer; printer.SetIndent( "\t" ); doc.Accept( &printer ); fprintf( stdout, "%s", printer.CStr() ); Constructor & Destructor Documentation
Member Function Documentation
Return the result.
Query the indention string.
Query the current line breaking string.
Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation.
Set the line breaking string. By default set to newline (
Switch over to "stream printing" which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission.
Return the length of the result string.
Return the result.
Visit a declaration. Reimplemented from TiXmlVisitor.
Visit a text node. Reimplemented from TiXmlVisitor.
Visit a comment node. Reimplemented from TiXmlVisitor.
Visit an unknown node. Reimplemented from TiXmlVisitor.
Visit a document. Reimplemented from TiXmlVisitor.
Visit an element. Reimplemented from TiXmlVisitor.
Visit a document. Reimplemented from TiXmlVisitor.
Visit an element. Reimplemented from TiXmlVisitor. The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||