|
Yate
|
Xml Parent. More...
#include <yatexml.h>
Public Member Functions | |
| XmlParent () | |
| virtual | ~XmlParent () |
| virtual XmlDocument * | document () |
| virtual XmlFragment * | fragment () |
| virtual XmlElement * | element () |
| virtual XmlSaxParser::Error | addChild (XmlChild *child)=0 |
| virtual XmlChild * | removeChild (XmlChild *child, bool delObj=true)=0 |
| virtual void | reset () |
| virtual const ObjList & | getChildren () const |
| virtual void | clearChildren () |
| bool | hasChildren () const |
Xml Parent.
Xml Parent for a Xml child
| XmlParent | ( | ) | [inline] |
Constructor
| virtual ~XmlParent | ( | ) | [inline, virtual] |
Destructor
Append a new child to this XmlParent
| child | The child to append |
Implemented in XmlElement, XmlDocument, and XmlFragment.
| virtual void clearChildren | ( | ) | [inline, virtual] |
Clear this xml parent children. Default implementation does nothing
Reimplemented in XmlElement, and XmlFragment.
| virtual XmlDocument* document | ( | ) | [inline, virtual] |
Get an XmlDocument object from this XmlParent. Default implementation return 0
Reimplemented in XmlDocument.
| virtual XmlElement* element | ( | ) | [inline, virtual] |
Get an XmlElement object from this XmlParent. Default implementation return 0
Reimplemented in XmlElement.
| virtual XmlFragment* fragment | ( | ) | [inline, virtual] |
Get an XmlFragment object from this XmlParent. Default implementation return 0
Reimplemented in XmlFragment.
Referenced by XmlDomParser::fragment().
| virtual const ObjList& getChildren | ( | ) | const [inline, virtual] |
Obtain this xml parent children. Default implementation returns an empty list
Reimplemented in XmlElement, and XmlFragment.
References ObjList::empty().
| bool hasChildren | ( | ) | const [inline] |
Check if at least one child element exists
| virtual XmlChild* removeChild | ( | XmlChild * | child, |
| bool | delObj = true |
||
| ) | [pure virtual] |
Remove a child
| child | The child to remove |
| delObj | True to delete the object |
Implemented in XmlElement, XmlDocument, and XmlFragment.
| virtual void reset | ( | ) | [inline, virtual] |
Reset this xml parent. Default implementation does nothing
Reimplemented in XmlDocument, and XmlFragment.
1.7.6.1