Public Member Functions | |
XMLPrinter (FILE *file=nullptr, bool compact=false, int depth=0) | |
void | PushHeader (bool writeBOM, bool writeDeclaration) |
void | OpenElement (const char *name, bool compactMode=false) |
void | PushAttribute (const char *name, const char *value) |
If streaming, add an attribute to an open element. More... | |
void | PushAttribute (const char *name, int value) |
void | PushAttribute (const char *name, unsigned value) |
void | PushAttribute (const char *name, int64_t value) |
void | PushAttribute (const char *name, bool value) |
void | PushAttribute (const char *name, double value) |
virtual void | CloseElement (bool compactMode=false) |
If streaming, close the Element. More... | |
void | PushText (const char *text, bool cdata=false) |
Add a text node. More... | |
void | PushText (int value) |
Add a text node from an integer. More... | |
void | PushText (unsigned value) |
Add a text node from an unsigned. More... | |
void | PushText (int64_t value) |
Add a text node from an unsigned. More... | |
void | PushText (bool value) |
Add a text node from a bool. More... | |
void | PushText (float value) |
Add a text node from a float. More... | |
void | PushText (double value) |
Add a text node from a double. More... | |
void | PushComment (const char *comment) |
Add a comment. More... | |
void | PushDeclaration (const char *value) |
void | PushUnknown (const char *value) |
virtual bool | VisitEnter (const XMLDocument &) |
Visit a document. More... | |
virtual bool | VisitExit (const XMLDocument &) |
Visit a document. More... | |
virtual bool | VisitEnter (const XMLElement &element, const XMLAttribute *attribute) |
Visit an element. More... | |
virtual bool | VisitExit (const XMLElement &element) |
Visit an element. More... | |
virtual bool | Visit (const XMLText &text) |
Visit a text node. More... | |
virtual bool | Visit (const XMLComment &comment) |
Visit a comment node. More... | |
virtual bool | Visit (const XMLDeclaration &declaration) |
Visit a declaration. More... | |
virtual bool | Visit (const XMLUnknown &unknown) |
Visit an unknown node. More... | |
const char * | CStr () const |
int | CStrSize () const |
void | ClearBuffer () |
Protected Member Functions | |
virtual bool | CompactMode (const XMLElement &) |
virtual void | PrintSpace (int depth) |
void | Print (const char *format,...) |
void | Write (const char *data, int size) |
void | Write (const char *data) |
void | Putc (char ch) |
void | SealElementIfJustOpened () |
Protected Attributes | |
bool | _elementJustOpened |
DynArray< const char *, 10 > | _stack |
Private Types | |
enum | { ENTITY_RANGE = 64 , BUF_SIZE = 200 } |
Private Member Functions | |
void | PrintString (const char *, bool restrictedEntitySet) |
XMLPrinter (const XMLPrinter &) | |
XMLPrinter & | operator= (const XMLPrinter &) |
Private Attributes | |
bool | _firstElement |
FILE * | _fp |
int | _depth |
int | _textDepth |
bool | _processEntities |
bool | _compactMode |
bool | _entityFlag [ENTITY_RANGE] |
bool | _restrictedEntityFlag [ENTITY_RANGE] |
DynArray< char, 20 > | _buffer |
Definition at line 2153 of file tinyxml2.h.
|
private |
Definition at line 2266 of file tinyxml2.h.
XMLPrinter | ( | FILE * | file = nullptr , |
bool | compact = false , |
||
int | depth = 0 |
||
) |
Definition at line 2591 of file tinyxml2.cpp.
|
inlinevirtual |
Definition at line 2163 of file tinyxml2.h.
|
inline |
Definition at line 2234 of file tinyxml2.h.
|
virtual |
If streaming, close the Element.
Definition at line 2834 of file tinyxml2.cpp.
|
inlineprotectedvirtual |
Definition at line 2241 of file tinyxml2.h.
|
inline |
Definition at line 2219 of file tinyxml2.h.
|
inline |
Definition at line 2227 of file tinyxml2.h.
void OpenElement | ( | const char * | name, |
bool | compactMode = false |
||
) |
Definition at line 2760 of file tinyxml2.cpp.
|
protected |
Definition at line 2621 of file tinyxml2.cpp.
|
protectedvirtual |
Definition at line 2675 of file tinyxml2.cpp.
|
private |
Definition at line 2684 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
bool | value | ||
) |
Definition at line 2818 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
const char * | value | ||
) |
If streaming, add an attribute to an open element.
Definition at line 2783 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
double | value | ||
) |
Definition at line 2826 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
int | value | ||
) |
Definition at line 2794 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
int64_t | value | ||
) |
Definition at line 2810 of file tinyxml2.cpp.
void PushAttribute | ( | const char * | name, |
unsigned | value | ||
) |
Definition at line 2802 of file tinyxml2.cpp.
void PushComment | ( | const char * | comment | ) |
Add a comment.
Definition at line 2942 of file tinyxml2.cpp.
void PushDeclaration | ( | const char * | value | ) |
Definition at line 2958 of file tinyxml2.cpp.
void PushHeader | ( | bool | writeBOM, |
bool | writeDeclaration | ||
) |
Definition at line 2746 of file tinyxml2.cpp.
void PushText | ( | bool | value | ) |
Add a text node from a bool.
Definition at line 2918 of file tinyxml2.cpp.
void PushText | ( | const char * | text, |
bool | cdata = false |
||
) |
Add a text node.
Definition at line 2878 of file tinyxml2.cpp.
void PushText | ( | double | value | ) |
Add a text node from a double.
Definition at line 2934 of file tinyxml2.cpp.
void PushText | ( | float | value | ) |
Add a text node from a float.
Definition at line 2926 of file tinyxml2.cpp.
void PushText | ( | int | value | ) |
Add a text node from an integer.
Definition at line 2902 of file tinyxml2.cpp.
void PushText | ( | int64_t | value | ) |
Add a text node from an unsigned.
Definition at line 2895 of file tinyxml2.cpp.
void PushText | ( | unsigned | value | ) |
Add a text node from an unsigned.
Definition at line 2910 of file tinyxml2.cpp.
void PushUnknown | ( | const char * | value | ) |
Definition at line 2974 of file tinyxml2.cpp.
|
protected |
Definition at line 2660 of file tinyxml2.cpp.
|
protected |
Definition at line 2867 of file tinyxml2.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlineprotected |
Definition at line 2249 of file tinyxml2.h.
|
protected |
Definition at line 2645 of file tinyxml2.cpp.
|
private |
Definition at line 2273 of file tinyxml2.h.
|
private |
Definition at line 2264 of file tinyxml2.h.
|
private |
Definition at line 2261 of file tinyxml2.h.
|
protected |
Definition at line 2253 of file tinyxml2.h.
|
private |
Definition at line 2270 of file tinyxml2.h.
|
private |
Definition at line 2259 of file tinyxml2.h.
|
private |
Definition at line 2260 of file tinyxml2.h.
|
private |
Definition at line 2263 of file tinyxml2.h.
|
private |
Definition at line 2271 of file tinyxml2.h.
|
protected |
Definition at line 2254 of file tinyxml2.h.
|
private |
Definition at line 2262 of file tinyxml2.h.