Yate
Public Member Functions
XmlParent Class Reference

Xml Parent. More...

#include <yatexml.h>

Inheritance diagram for XmlParent:
XmlDocument XmlElement XmlFragment

List of all members.

Public Member Functions

 XmlParent ()
virtual ~XmlParent ()
virtual XmlDocumentdocument ()
virtual XmlFragmentfragment ()
virtual XmlElementelement ()
virtual XmlSaxParser::Error addChild (XmlChild *child)=0
virtual XmlChildremoveChild (XmlChild *child, bool delObj=true)=0
virtual void reset ()
virtual const ObjListgetChildren () const
virtual void clearChildren ()
bool hasChildren () const

Detailed Description

Xml Parent.

Xml Parent for a Xml child


Constructor & Destructor Documentation

XmlParent ( ) [inline]

Constructor

virtual ~XmlParent ( ) [inline, virtual]

Destructor


Member Function Documentation

virtual XmlSaxParser::Error addChild ( XmlChild child) [pure virtual]

Append a new child to this XmlParent

Parameters:
childThe child to append
Returns:
XmlNoError if the child was successfully added

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

Returns:
0

Reimplemented in XmlDocument.

virtual XmlElement* element ( ) [inline, virtual]

Get an XmlElement object from this XmlParent. Default implementation return 0

Returns:
0

Reimplemented in XmlElement.

virtual XmlFragment* fragment ( ) [inline, virtual]

Get an XmlFragment object from this XmlParent. Default implementation return 0

Returns:
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

Returns:
The list of children

Reimplemented in XmlElement, and XmlFragment.

References ObjList::empty().

bool hasChildren ( ) const [inline]

Check if at least one child element exists

Returns:
True if this parent has at least one child
virtual XmlChild* removeChild ( XmlChild child,
bool  delObj = true 
) [pure virtual]

Remove a child

Parameters:
childThe child to remove
delObjTrue to delete the object
Returns:
XmlChild pointer if found and not deleted

Implemented in XmlElement, XmlDocument, and XmlFragment.

virtual void reset ( ) [inline, virtual]

Reset this xml parent. Default implementation does nothing

Reimplemented in XmlDocument, and XmlFragment.


The documentation for this class was generated from the following file: