Panda3D
|
** Print to memory functionality. The TiXmlPrinter is useful when you need to: More...
Public Member Functions | |
__init__ () | |
str | CStr () |
Return the result. More... | |
str | Indent () |
Query the indention string. More... | |
str | LineBreak () |
Query the current line breaking string. More... | |
SetIndent (str _indent) | |
** Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation. */ More... | |
SetLineBreak (str _lineBreak) | |
** Set the line breaking string. By default set to newline ( ). Some operating systems prefer other characters, or can be set to the null/empty string for no indenation. */ More... | |
SetStreamPrinting () | |
** Switch over to "stream printing" which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission. */ More... | |
size_t | Size () |
Return the length of the result string. More... | |
str | Str () |
Return the result. More... | |
![]() | |
bool | Visit (const TiXmlComment) |
comment/ More... | |
bool | Visit (const TiXmlDeclaration) |
declaration/ More... | |
bool | Visit (const TiXmlText) |
text/ More... | |
bool | Visit (const TiXmlUnknown) |
unknown/ More... | |
bool | VisitEnter (const TiXmlDocument) |
doc/ More... | |
bool | VisitEnter (const TiXmlElement, const TiXmlAttribute) |
firstAttribute/ More... | |
bool | VisitExit (const TiXmlDocument) |
doc/ More... | |
bool | VisitExit (const TiXmlElement) |
element/ More... | |
** Print 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() );
*/
__init__ | ( | ) |
str CStr | ( | ) |
Return the result.
str Indent | ( | ) |
Query the indention string.
str LineBreak | ( | ) |
Query the current line breaking string.
SetIndent | ( | str | _indent | ) |
** Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation. */
SetLineBreak | ( | str | _lineBreak | ) |
** Set the line breaking string. By default set to newline (
). Some operating systems prefer other characters, or can be set to the null/empty string for no indenation. */
SetStreamPrinting | ( | ) |
** Switch over to "stream printing" which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission. */
size_t Size | ( | ) |
Return the length of the result string.
str Str | ( | ) |
Return the result.