QXmlStreamNamespaceDeclaration 类

The QXmlStreamNamespaceDeclaration class represents a namespace declaration. 更多...

头: #include <QXmlStreamNamespaceDeclaration>
qmake: QT += core
Since: Qt 4.3

注意: 此类的所有函数 可重入 .

公共函数

QXmlStreamNamespaceDeclaration ()
QXmlStreamNamespaceDeclaration (const QXmlStreamNamespaceDeclaration & other )
QXmlStreamNamespaceDeclaration (QXmlStreamNamespaceDeclaration && other )
QXmlStreamNamespaceDeclaration (const QString & prefix , const QString & namespaceUri )
~QXmlStreamNamespaceDeclaration ()
QStringRef namespaceUri () const
QStringRef prefix () const
bool operator!= (const QXmlStreamNamespaceDeclaration & other ) const
QXmlStreamNamespaceDeclaration & operator= (QXmlStreamNamespaceDeclaration && other )
QXmlStreamNamespaceDeclaration & operator= (const QXmlStreamNamespaceDeclaration & other )
bool operator== (const QXmlStreamNamespaceDeclaration & other ) const
typedef QXmlStreamNamespaceDeclarations

详细描述

The QXmlStreamNamespaceDeclaration class represents a namespace declaration.

An namespace declaration consists of a prefix () 和 namespaceUri ().

成员函数文档编制

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration ()

Creates an empty namespace declaration.

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration (const QXmlStreamNamespaceDeclaration & other )

创建副本为 other .

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration ( QXmlStreamNamespaceDeclaration && other )

移动拷贝构造函数。

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration (const QString & prefix , const QString & namespaceUri )

Creates a namespace declaration with prefix and namespaceUri .

该函数在 Qt 4.4 引入。

QXmlStreamNamespaceDeclaration:: ~QXmlStreamNamespaceDeclaration ()

Destructs this namespace declaration.

QStringRef QXmlStreamNamespaceDeclaration:: namespaceUri () const

Returns the namespaceUri.

QStringRef QXmlStreamNamespaceDeclaration:: prefix () const

Returns the prefix.

bool QXmlStreamNamespaceDeclaration:: operator!= (const QXmlStreamNamespaceDeclaration & other ) const

Compares this namespace declaration with other 并返回 true if they are not equal; otherwise returns false .

QXmlStreamNamespaceDeclaration &QXmlStreamNamespaceDeclaration:: operator= ( QXmlStreamNamespaceDeclaration && other )

移动赋值运算符。

QXmlStreamNamespaceDeclaration &QXmlStreamNamespaceDeclaration:: operator= (const QXmlStreamNamespaceDeclaration & other )

赋值 other to this namespace declaration.

bool QXmlStreamNamespaceDeclaration:: operator== (const QXmlStreamNamespaceDeclaration & other ) const

Compares this namespace declaration with other 并返回 true if they are equal; otherwise returns false .

相关非成员

typedef QXmlStreamNamespaceDeclarations

同义词 QVector < QXmlStreamNamespaceDeclaration >.