QXmlStreamNamespaceDeclaration 类

QXmlStreamNamespaceDeclaration 类表示名称空间声明。 更多...

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

该类在 Qt 4.3 引入。

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

公共函数

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

详细描述

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

成员函数文档编制

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration (const QXmlStreamNamespaceDeclaration & other )

创建副本为 other .

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

Creates a namespace declaration with prefix and namespaceUri .

该函数在 Qt 4.4 引入。

QXmlStreamNamespaceDeclaration:: QXmlStreamNamespaceDeclaration ()

Creates an empty namespace declaration.

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

赋值 other to this namespace declaration.

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 .

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 >.