XML Library
Public Member Functions | Private Member Functions | Private Attributes
XML::ElementNode Class Reference

The XML node type used to denote an element. More...

#include <ElementNode.hpp>

Inheritance diagram for XML::ElementNode:
XML::Node XML::NodeContainer

List of all members.

Public Member Functions

 ElementNode ()
 Default constructor.
 ElementNode (const tstring &strName)
 Construction from the element name.
 ElementNode (const tstring &strName, const Attributes &vAttribs)
 Construction from an element name and attributes.
virtual NodeType type () const
 Get the real type of the node.
const tstring & name () const
 Get the elements name.
void setName (const tstring &strName)
 Set the elements name.
const AttributesgetAttributes () const
 Get the attributes.
AttributesgetAttributes ()
 Get the attributes.

Private Member Functions

virtual ~ElementNode ()
 Destructor.

Private Attributes

tstring m_strName
 The element name.
Attributes m_vAttribs
 The attributes.

Detailed Description

The XML node type used to denote an element.

An element is a container node that has both attributes and other child nodes.


Constructor & Destructor Documentation

Default constructor.

XML::ElementNode::ElementNode ( const tstring &  strName)

Construction from the element name.

XML::ElementNode::ElementNode ( const tstring &  strName,
const Attributes vAttribs 
)

Construction from an element name and attributes.

XML::ElementNode::~ElementNode ( ) [private, virtual]

Destructor.


Member Function Documentation

NodeType XML::ElementNode::type ( ) const [inline, virtual]

Get the real type of the node.

Implements XML::Node.

const tstring & XML::ElementNode::name ( ) const [inline]

Get the elements name.

void XML::ElementNode::setName ( const tstring &  strName) [inline]

Set the elements name.

const Attributes & XML::ElementNode::getAttributes ( ) const [inline]

Get the attributes.

Get the attributes.


Member Data Documentation

tstring XML::ElementNode::m_strName [private]

The element name.

The attributes.


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