#include <QtAttributesAdaptor.H>
Inheritance diagram for qgxml::QtAttributesAdaptor:

This class adapts the Qgar SAX Attributes interface to the Qt implementation: QXmlAttributes.
Definition at line 73 of file QtAttributesAdaptor.H.
Public Member Functions | |
Constructors | |
| QtAttributesAdaptor (QXmlAttributes *attributes) | |
| Default constructor. | |
Destructors | |
| virtual | ~QtAttributesAdaptor () |
| Destructor. | |
Access | |
| virtual int | getIndex (const std::string &qName) const |
| Look up the index of an attribute by XML 1.0 qualified name. | |
| virtual int | getIndex (const std::string &uri, const std::string &localName) const |
| Look up the index of an attribute by Namespace name. | |
| virtual int | getLength () const |
| Return the number of attributes in the list. | |
| virtual std::string | getLocalName (int index) const |
| Look up an attribute's local name by index. | |
| virtual std::string | getQName (int index) const |
| Look up an attribute's XML 1.0 qualified name by index. | |
| virtual std::string | getType (int index) const |
| Look up an attribute's type by index. | |
| virtual std::string | getType (const std::string &qName) const |
| Look up an attribute's type by XML 1.0 qualified name. | |
| virtual std::string | getType (const std::string &uri, const std::string &localName) const |
| Look up an attribute's type by Namespace name. | |
| virtual std::string | getURI (int index) const |
| Look up an attribute's Namespace URI by index. | |
| virtual std::string | getValue (int index) const |
| Look up an attribute's value by index. | |
| virtual std::string | getValue (const std::string &qName) const |
| Look up an attribute's value by XML 1.0 qualified name. | |
| virtual std::string | getValue (const std::string &uri, const std::string &localName) const |
| Look up an attribute's value by Namespace name. | |
Protected Attributes | |
| QXmlAttributes * | _impl |
| The adaptee, a QXmlAttribute instance. | |
| QtStringConverter | _sc |
| A converter used to transform stl string to Qt QString and back. | |
|
|
Default constructor.
Definition at line 57 of file QtAttributesAdaptor.C. References _impl. |
|
|
Destructor.
Definition at line 68 of file QtAttributesAdaptor.C. |
|
||||||||||||
|
Look up the index of an attribute by Namespace name.
Implements qgxml::Attributes. |
|
|
Look up the index of an attribute by XML 1.0 qualified name.
Implements qgxml::Attributes. |
|
|
Return the number of attributes in the list. Once you know the number of attributes, you can iterate through the list.
Implements qgxml::Attributes. Definition at line 95 of file QtAttributesAdaptor.C. References _impl. |
|
|
Look up an attribute's local name by index.
Implements qgxml::Attributes. Definition at line 103 of file QtAttributesAdaptor.C. References _impl, _sc, and qgxml::QtStringConverter::convert(). |
|
|
Look up an attribute's XML 1.0 qualified name by index.
Implements qgxml::Attributes. Definition at line 111 of file QtAttributesAdaptor.C. References _impl, _sc, and qgxml::QtStringConverter::convert(). |
|
||||||||||||
|
Look up an attribute's type by Namespace name.
Implements qgxml::Attributes. |
|
|
Look up an attribute's type by XML 1.0 qualified name.
Implements qgxml::Attributes. |
|
|
Look up an attribute's type by index.
Implements qgxml::Attributes. Definition at line 119 of file QtAttributesAdaptor.C. References _impl, _sc, and qgxml::QtStringConverter::convert(). |
|
|
Look up an attribute's Namespace URI by index.
Implements qgxml::Attributes. Definition at line 145 of file QtAttributesAdaptor.C. References _impl, _sc, and qgxml::QtStringConverter::convert(). |
|
||||||||||||
|
Look up an attribute's value by Namespace name.
Implements qgxml::Attributes. |
|
|
Look up an attribute's value by XML 1.0 qualified name.
Implements qgxml::Attributes. |
|
|
Look up an attribute's value by index.
Implements qgxml::Attributes. Definition at line 153 of file QtAttributesAdaptor.C. References _impl, _sc, and qgxml::QtStringConverter::convert(). |
|
|
The adaptee, a QXmlAttribute instance.
Definition at line 260 of file QtAttributesAdaptor.H. Referenced by getLength(), getLocalName(), getQName(), getType(), getURI(), getValue(), and QtAttributesAdaptor(). |
|
|
A converter used to transform stl string to Qt QString and back.
Definition at line 263 of file QtAttributesAdaptor.H. Referenced by getLocalName(), getQName(), getType(), getURI(), and getValue(). |