#include <XMLChild.h>
Inheritance diagram for XMLChild:


Public Types | |
| enum | ChildType { ELEMENT, TAG, CDATA } |
| XML Child Types. | |
Public Methods | |
| XMLChild (const ChildType &type=CDATA) | |
| Constructor. | |
| virtual ChildType | GetType () const |
| get the type of child. | |
| virtual void | SetType (const ChildType &newType) |
| set the type of child. | |
| virtual string | ToString () const |
| convert to a string. More... | |
Public Attributes | |
| typedef | XMLChildType |
Protected Methods | |
| XMLChild& | Copy (const XMLChild &rhs) |
| copy constructor. | |
| void | Init (const ChildType &newType) |
| initializer. | |
| bool | Equals (const XMLChild &rhs) const |
| operator==. | |
An XMLChild can be either an Element, Tag, or character data according to the W3C
|
|
convert to a string. this is useful for polymorphism. without knowing the type of child, you do know that each can be converted to a string Reimplemented in CDataChild, ElementChild, and TagChild. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001