decXmlContainer Class Reference

XML Container. More...

#include <decXmlContainer.h>

Inheritance diagram for decXmlContainer:
decXmlElement decXmlAttListDecl decXmlAttTypeEnum decXmlAttTypeEnumEntry decXmlDocument decXmlDTD decXmlElementDecl decXmlElementDeclOp decXmlElementTag

List of all members.

Public Member Functions

Constructors and Destructors
 decXmlContainer ()
 Creates a new xml container.
virtual ~decXmlContainer ()
 Cleans up the xml container.
Element Management
virtual int GetElementCount () const
 Retrieves the count of elements.
virtual bool IsEmpty () const
 Determines if there are no elements in this container.
virtual decXmlElementGetElementAt (int index) const
 Retrieves the element at the given index.
virtual void AddElement (decXmlElement *element)
 Adds an element to the container.
virtual void RemoveElement (decXmlElement *element)
 Removes an element from the container.
virtual void RemoveAllElements ()
 Removes all elements from the container.
virtual int IndexOfElement (decXmlElement *element)
 Retrieves the index of an element or -1 if not found.
virtual bool HasElement (decXmlElement *element)
 Determines if the given element is part of the container.
virtual void VisitElements (decXmlVisitor *visitor)
 Visits all elements.
Visiting
virtual void Visit (decXmlVisitor *visitor)
 Visits this node.
Casting
virtual bool CanCastToContainer ()
 Determines if this element can be cast to decXmlContainer which is by default false.
virtual decXmlContainerCastToContainer ()
 Safely casts this element to decXmlContainer or throwns an exception otherwise.

Detailed Description

XML Container.

This is the base class for all XML elements which can contain an unrestricted number of other XML elements.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decXmlContainer::decXmlContainer (  )

Creates a new xml container.

virtual decXmlContainer::~decXmlContainer (  ) [virtual]

Cleans up the xml container.


Member Function Documentation

virtual void decXmlContainer::AddElement ( decXmlElement element ) [virtual]

Adds an element to the container.

virtual bool decXmlContainer::CanCastToContainer (  ) [virtual]

Determines if this element can be cast to decXmlContainer which is by default false.

Reimplemented from decXmlElement.

virtual decXmlContainer* decXmlContainer::CastToContainer (  ) [virtual]

Safely casts this element to decXmlContainer or throwns an exception otherwise.

Reimplemented from decXmlElement.

virtual decXmlElement* decXmlContainer::GetElementAt ( int  index ) const [virtual]

Retrieves the element at the given index.

virtual int decXmlContainer::GetElementCount (  ) const [virtual]

Retrieves the count of elements.

virtual bool decXmlContainer::HasElement ( decXmlElement element ) [virtual]

Determines if the given element is part of the container.

virtual int decXmlContainer::IndexOfElement ( decXmlElement element ) [virtual]

Retrieves the index of an element or -1 if not found.

virtual bool decXmlContainer::IsEmpty (  ) const [virtual]

Determines if there are no elements in this container.

virtual void decXmlContainer::RemoveAllElements (  ) [virtual]

Removes all elements from the container.

virtual void decXmlContainer::RemoveElement ( decXmlElement element ) [virtual]

Removes an element from the container.

virtual void decXmlContainer::Visit ( decXmlVisitor visitor ) [virtual]
virtual void decXmlContainer::VisitElements ( decXmlVisitor visitor ) [virtual]

Visits all elements.


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