#include <QtXmlElement.h>
Inheritance diagram for QtXmlElement:
Definition at line 38 of file QtXmlElement.h.
Public Types | |
typedef std::list< XmlElement * > | NodeList_t |
The type of container used to store XmlElement nodes. | |
Public Member Functions | |
virtual void | appendChild (const XmlNode &child) |
Appends a child element to the element. | |
virtual void | appendChild (const XmlNode &child)=0 |
Appends a child element to the element. | |
virtual bool | attribute (const std::string &name, std::string &value) const |
Sets value to the attribute name's value. | |
virtual bool | attribute (const std::string &name, double &value) const |
Sets value to the attribute name's value. | |
virtual bool | attribute (const std::string &name, float &value) const |
Sets value to the attribute name's value. | |
virtual bool | attribute (const std::string &name, unsigned int &value) const |
Sets value to the attribute name's value. | |
virtual bool | attribute (const std::string &name, int &value) const |
Sets value to the attribute name's value. | |
virtual bool | attribute (const std::string &name, bool &value) const |
Sets value to the attribute name's value. | |
XmlElement * | create () const |
virtual void | fillNodeList (const std::string &tagName, std::list< XmlElement * > &nodeList) const |
virtual int | getID () const |
Returns the ID of the element, if it has one. | |
virtual QtXmlElement * | getNode (const std::string &tagName) const |
Returns the single direct child element node with name tagName. | |
virtual const std::string & | getText () const |
Gets the text node from the element. | |
QtXmlElement (const QtXmlElement &) | |
The copy constructor. | |
virtual void | setAttribute (const std::string &name, const std::string &value) |
Sets attribute named nanme to the string value value. | |
virtual void | setAttribute (const std::string &name, double value) |
Sets attribute named name to the double value value. | |
virtual void | setAttribute (const std::string &name, float value) |
Sets attribute named name to the float value value. | |
virtual void | setAttribute (const std::string &name, unsigned int value) |
Sets attribute named name to the unsigned int value value. | |
virtual void | setAttribute (const std::string &name, bool value) |
Sets attribute named name to the int value value. | |
virtual void | setAttribute (const std::string &name, int value) |
Sets attribute named name to the int value value. | |
virtual std::string | tagName () const |
Returns the tag name of the element. | |
~QtXmlElement () | |
The destructor. | |
Protected Attributes | |
QDomNode * | m_node |
The DOM node wrapped by this object. | |
Private Member Functions | |
QtXmlElement (const QDomElement &) | |
A constructor used internally. | |
Private Attributes | |
QDomElement * | m_element |
The DOM element node wrapped by this object. | |
Friends | |
class | QtXmlDocument |
|
The type of container used to store XmlElement nodes.
Definition at line 47 of file XmlElement.h. |
|
A constructor used internally.
Definition at line 46 of file QtXmlElement.cxx. References m_element, and QtXmlNode::m_node. Referenced by getNode(). |
|
The copy constructor.
Definition at line 29 of file QtXmlElement.cxx. References m_element, and QtXmlNode::m_node. |
|
The destructor.
Definition at line 55 of file QtXmlElement.cxx. References m_element. |
|
Appends a child element to the element.
Implements XmlNode. Definition at line 32 of file QtXmlNode.cxx. References QtXmlNode::m_node. |
|
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 261 of file QtXmlElement.cxx. References attribute(), QString::latin1(), and m_element. |
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 245 of file QtXmlElement.cxx. References attribute(), m_element, and QString::toDouble(). |
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 229 of file QtXmlElement.cxx. References attribute(), m_element, and QString::toFloat(). |
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 213 of file QtXmlElement.cxx. References attribute(), m_element, and QString::toUInt(). |
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 181 of file QtXmlElement.cxx. References attribute(), m_element, and QString::toInt(). |
|
Sets value to the attribute name's value.
If attribute of name name exists returns Implements XmlElement. Definition at line 197 of file QtXmlElement.cxx. References m_element, and QString::toInt(). Referenced by attribute(), and getID(). |
|
|
|
Implements XmlElement. Definition at line 102 of file QtXmlElement.cxx. References QDomNodeList::count(), QDomNodeList::item(), m_element, num_util::size(), and QDomNode::toElement(). |
|
Returns the ID of the element, if it has one.
Implements XmlElement. Definition at line 68 of file QtXmlElement.cxx. References attribute(), m_element, and QString::toInt(). |
|
Returns the single direct child element node with name tagName. If a child of that name doesn't exist returns a null pointer. if child exists but is not an element node, an assertion is made. Implements XmlElement. Definition at line 86 of file QtXmlElement.cxx. References QDomNode::isNull(), m_element, QtXmlElement(), and QDomNode::toElement(). |
|
Gets the text node from the element.
Implements XmlElement. Definition at line 273 of file QtXmlElement.cxx. References QString::latin1(), and m_element. |
|
Sets attribute named nanme to the string value value.
Implements XmlElement. Definition at line 172 of file QtXmlElement.cxx. References m_element, and setAttribute(). |
|
Sets attribute named name to the double value value.
Implements XmlElement. Definition at line 155 of file QtXmlElement.cxx. References m_element, and setAttribute(). |
|
Sets attribute named name to the float value value.
Implements XmlElement. Definition at line 145 of file QtXmlElement.cxx. References setAttribute(). |
|
Sets attribute named name to the unsigned int value value.
Implements XmlElement. Definition at line 137 of file QtXmlElement.cxx. References m_element, and setAttribute(). |
|
Sets attribute named name to the int value value.
Implements XmlElement. Definition at line 127 of file QtXmlElement.cxx. References m_element, and setAttribute(). |
|
Sets attribute named name to the int value value.
Implements XmlElement. Definition at line 118 of file QtXmlElement.cxx. References m_element. Referenced by setAttribute(). |
|
Returns the tag name of the element. This function is not needed for XML processing. It is only here as an aid in debugging. Implements XmlElement. Definition at line 61 of file QtXmlElement.cxx. References QString::latin1(), and m_element. |
|
Reimplemented from QtXmlNode. Definition at line 56 of file QtXmlElement.h. |
|
The DOM element node wrapped by this object.
Definition at line 49 of file QtXmlElement.h. Referenced by attribute(), fillNodeList(), getID(), getNode(), getText(), QtXmlElement(), setAttribute(), tagName(), and ~QtXmlElement(). |
|
The DOM node wrapped by this object.
Definition at line 39 of file QtXmlNode.h. Referenced by QtXmlNode::appendChild(), QtXmlDocument::appendChild(), QtXmlElement(), QtXmlTextNode::QtXmlTextNode(), and QtXmlNode::~QtXmlNode(). |