#include <GXmlTree.h>
Inheritance diagram for GXmlTag:

Public Member Functions | |
| GXmlTag (char *tag=0) | |
| Construct the object. | |
| bool | Dump (int Depth=0) |
| For debugging. | |
| char * | GetAttr (char *Name) |
| Get the string value of a named attribute. | |
| int | GetAsInt (char *Name) |
| Get the value of a named attribute as an int. | |
| bool | SetAttr (char *Name, char *Value) |
| Set the value of a named attribute to a string. | |
| bool | SetAttr (char *Name, int Value) |
| Set the value of a named attribute to an int. | |
| bool | DelAttr (char *Name) |
| Deletes an attribute. | |
| bool | SerializeAttr (char *Attr, int &Int) |
| Read/write a native C integer into an attribute. | |
| bool | SerializeAttr (char *Attr, char *&Str) |
| Read/write a native C dynamically allocated string into an attribute. | |
| bool | SerializeAttr (char *Attr, double &Dbl) |
| Read/write a native C double into an attribute. | |
| virtual bool | Serialize () |
| Read/write all your native types in here. | |
| GXmlTag * | GetTag (char *Name, bool Create=false) |
| Returns a pointer to a child tag if present, or NULL if not. | |
| GXmlTag * | CreateTag (char *Name) |
| Creates a sub tag if it doesn't already exist. | |
| virtual void | InsertTag (GXmlTag *t) |
| Inserts a child tag. | |
| virtual void | RemoveTag () |
| Removes this tag from the DOM heirarchy. | |
| GXmlTag & | operator= (GXmlTag &t) |
| Copy operator, doesn't effect children. | |
Public Attributes | |
| char * | Tag |
| char * | Content |
| Any content following the tag. | |
| GXmlTag * | Parent |
| The parent element/tag. | |
| List< GXmlAttr > | Attr |
| A list of attributes that this tag has. | |
| List< GXmlTag > | Children |
Friends | |
| class | GXmlTree |
|
|
Construct the object.
|
|
|
A list of child tags. Don't edit this list yourself, use the InsertTag and RemoveTag methods. |
|
|
The name of the tag/element. This can be NULL in the case that the element is purely content. |
1.4.1