Public Member Functions | Friends

QXmlStreamAttribute Class Reference

Search for all occurrences

Detailed Description

Definition at line 135 of file qxmlstream.h.

#include <qxmlstream.h>

List of all members.

Public Member Functions

  QXmlStreamAttribute ()
  QXmlStreamAttribute (const QString &qualifiedName, const QString &value)
  QXmlStreamAttribute (const QString &namespaceUri, const QString &name, const QString &value)
  QXmlStreamAttribute (const QXmlStreamAttribute &)
QXmlStreamAttribute operator= (const QXmlStreamAttribute &)
  ~QXmlStreamAttribute ()
QStringRef  namespaceUri () const
QStringRef  name () const
QStringRef  qualifiedName () const
QStringRef  prefix () const
QStringRef  value () const
bool  isDefault () const
bool  operator== (const QXmlStreamAttribute &other) const
bool  operator!= (const QXmlStreamAttribute &other) const

Friends

class  QXmlStreamReaderPrivate
class  QXmlStreamAttributes

Constructor & Destructor Documentation

QXmlStreamAttribute ( const QString qualifiedName,
const QString value 
)
QXmlStreamAttribute ( const QString namespaceUri,
const QString name,
const QString value 
)

Member Function Documentation

QXmlStreamAttribute& operator= ( const QXmlStreamAttribute )
QStringRef namespaceUri ( ) const [inline]

Definition at line 148 of file qxmlstream.h.

{ return m_namespaceUri; }
QStringRef name ( ) const [inline]

Definition at line 149 of file qxmlstream.h.

{ return m_name; }
QStringRef qualifiedName ( ) const [inline]

Definition at line 150 of file qxmlstream.h.

{ return m_qualifiedName; }
QStringRef prefix ( ) const [inline]

Definition at line 151 of file qxmlstream.h.

                                     {
        return QStringRef(m_qualifiedName.string(),
                          m_qualifiedName.position(),
                          qMax(0, m_qualifiedName.size() - m_name.size() - 1));
    }
QStringRef value ( ) const [inline]

Definition at line 156 of file qxmlstream.h.

{ return m_value; }
bool isDefault ( ) const [inline]

Definition at line 157 of file qxmlstream.h.

{ return m_isDefault; }
bool operator== ( const QXmlStreamAttribute other ) const [inline]

Definition at line 158 of file qxmlstream.h.

                                                                   {
        return (value() == other.value()
                && (namespaceUri().isNull() ? (qualifiedName() == other.qualifiedName())
                    : (namespaceUri() == other.namespaceUri() && name() == other.name())));
    }
bool operator!= ( const QXmlStreamAttribute other ) const [inline]

Definition at line 163 of file qxmlstream.h.

        { return !operator==(other); }

Friends And Related Function Documentation

friend class QXmlStreamReaderPrivate [friend]

Definition at line 139 of file qxmlstream.h.

friend class QXmlStreamAttributes [friend]

Definition at line 140 of file qxmlstream.h.


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

QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute
QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute QXmlStreamAttribute