XML Library
|
The XML node type used to denote an element. More...
#include <ElementNode.hpp>
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 Attributes & | getAttributes () const |
Get the attributes. | |
Attributes & | getAttributes () |
Get the attributes. | |
Private Member Functions | |
virtual | ~ElementNode () |
Destructor. | |
Private Attributes | |
tstring | m_strName |
The element name. | |
Attributes | m_vAttribs |
The attributes. |
The XML node type used to denote an element.
An element is a container node that has both attributes and other child nodes.
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.
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.
Attributes & XML::ElementNode::getAttributes | ( | ) | [inline] |
Get the attributes.
tstring XML::ElementNode::m_strName [private] |
The element name.
Attributes XML::ElementNode::m_vAttribs [private] |
The attributes.