Qt 4.8
Public Functions | Properties | Friends | Related Functions | List of all members
QXmlStreamNamespaceDeclaration Class Reference

The QXmlStreamNamespaceDeclaration class represents a namespace declaration. More...

#include <qxmlstream.h>

Public Functions

QStringRef namespaceUri () const
 Returns the namespaceUri. More...
 
bool operator!= (const QXmlStreamNamespaceDeclaration &other) const
 Compares this namespace declaration with other and returns true if they are not equal; otherwise returns false. More...
 
QXmlStreamNamespaceDeclarationoperator= (const QXmlStreamNamespaceDeclaration &)
 Assigns other to this namespace declaration. More...
 
bool operator== (const QXmlStreamNamespaceDeclaration &other) const
 Compares this namespace declaration with other and returns true if they are equal; otherwise returns false. More...
 
QStringRef prefix () const
 Returns the prefix. More...
 
 QXmlStreamNamespaceDeclaration ()
 Creates an empty namespace declaration. More...
 
 QXmlStreamNamespaceDeclaration (const QXmlStreamNamespaceDeclaration &)
 Creates a copy of other. More...
 
 QXmlStreamNamespaceDeclaration (const QString &prefix, const QString &namespaceUri)
 Creates a namespace declaration with prefix and namespaceUri. More...
 
 ~QXmlStreamNamespaceDeclaration ()
 Destructs this namespace declaration. More...
 

Properties

QXmlStreamStringRef m_namespaceUri
 
QXmlStreamStringRef m_prefix
 
void * reserved
 

Friends

class QXmlStreamReaderPrivate
 

Related Functions

(Note that these are not member functions.)

 QXmlStreamNamespaceDeclarations
 Synonym for QVector<QXmlStreamNamespaceDeclaration>. More...
 

Detailed Description

The QXmlStreamNamespaceDeclaration class represents a namespace declaration.

Since
4.3
Note
This class or function is reentrant.

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

Definition at line 204 of file qxmlstream.h.

Constructors and Destructors

◆ QXmlStreamNamespaceDeclaration() [1/3]

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( )

Creates an empty namespace declaration.

Definition at line 2643 of file qxmlstream.cpp.

2644 {
2645 }

◆ QXmlStreamNamespaceDeclaration() [2/3]

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( const QXmlStreamNamespaceDeclaration other)

Creates a copy of other.

Definition at line 2664 of file qxmlstream.cpp.

2665 {
2666  *this = other;
2667 }

◆ QXmlStreamNamespaceDeclaration() [3/3]

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

Creates a namespace declaration with prefix and namespaceUri.

Since
4.4

Definition at line 2655 of file qxmlstream.cpp.

2656 {
2657  m_prefix = prefix;
2659 }
QStringRef namespaceUri() const
Returns the namespaceUri.
Definition: qxmlstream.h:216
QStringRef prefix() const
Returns the prefix.
Definition: qxmlstream.h:215
QXmlStreamStringRef m_namespaceUri
Definition: qxmlstream.h:205
QXmlStreamStringRef m_prefix
Definition: qxmlstream.h:205

◆ ~QXmlStreamNamespaceDeclaration()

QXmlStreamNamespaceDeclaration::~QXmlStreamNamespaceDeclaration ( )

Destructs this namespace declaration.

Definition at line 2681 of file qxmlstream.cpp.

2682 {
2683 }

Functions

◆ namespaceUri()

QStringRef QXmlStreamNamespaceDeclaration::namespaceUri ( ) const
inline

◆ operator!=()

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

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

Definition at line 220 of file qxmlstream.h.

221  { return !operator==(other); }
bool operator==(const QXmlStreamNamespaceDeclaration &other) const
Compares this namespace declaration with other and returns true if they are equal; otherwise returns ...
Definition: qxmlstream.h:217

◆ operator=()

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

Assigns other to this namespace declaration.

Definition at line 2672 of file qxmlstream.cpp.

2673 {
2674  m_prefix = other.m_prefix;
2676  return *this;
2677 }
QXmlStreamStringRef m_namespaceUri
Definition: qxmlstream.h:205
QXmlStreamStringRef m_prefix
Definition: qxmlstream.h:205

◆ operator==()

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

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

Definition at line 217 of file qxmlstream.h.

217  {
218  return (prefix() == other.prefix() && namespaceUri() == other.namespaceUri());
219  }
QStringRef namespaceUri() const
Returns the namespaceUri.
Definition: qxmlstream.h:216
QStringRef prefix() const
Returns the prefix.
Definition: qxmlstream.h:215

◆ prefix()

QStringRef QXmlStreamNamespaceDeclaration::prefix ( ) const
inline

Friends and Related Functions

◆ QXmlStreamNamespaceDeclarations()

◆ QXmlStreamReaderPrivate

Definition at line 208 of file qxmlstream.h.

Properties

◆ m_namespaceUri

QXmlStreamStringRef QXmlStreamNamespaceDeclaration::m_namespaceUri
private

Definition at line 205 of file qxmlstream.h.

Referenced by operator=(), and QXmlStreamReaderPrivate::resolvePublicNamespaces().

◆ m_prefix

QXmlStreamStringRef QXmlStreamNamespaceDeclaration::m_prefix
private

Definition at line 205 of file qxmlstream.h.

Referenced by operator=(), and QXmlStreamReaderPrivate::resolvePublicNamespaces().

◆ reserved

void* QXmlStreamNamespaceDeclaration::reserved
private

Definition at line 206 of file qxmlstream.h.


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