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

The QXmlStreamEntityDeclaration class represents a DTD entity declaration. More...

#include <qxmlstream.h>

Public Functions

QStringRef name () const
 Returns the entity name. More...
 
QStringRef notationName () const
 Returns the notation name. More...
 
bool operator!= (const QXmlStreamEntityDeclaration &other) const
 Compares this entity declaration with other and returns true if they are not equal; otherwise returns false. More...
 
QXmlStreamEntityDeclarationoperator= (const QXmlStreamEntityDeclaration &)
 Assigns other to this entity declaration. More...
 
bool operator== (const QXmlStreamEntityDeclaration &other) const
 Compares this entity declaration with other and returns true if they are equal; otherwise returns false. More...
 
QStringRef publicId () const
 Returns the public identifier. More...
 
 QXmlStreamEntityDeclaration ()
 Creates an empty entity declaration. More...
 
 QXmlStreamEntityDeclaration (const QXmlStreamEntityDeclaration &)
 Creates a copy of other. More...
 
QStringRef systemId () const
 Returns the system identifier. More...
 
QStringRef value () const
 Returns the entity's value. More...
 
 ~QXmlStreamEntityDeclaration ()
 Destructs this entity declaration. More...
 

Properties

QXmlStreamStringRef m_name
 
QXmlStreamStringRef m_notationName
 
QXmlStreamStringRef m_publicId
 
QXmlStreamStringRef m_systemId
 
QXmlStreamStringRef m_value
 
void * reserved
 

Friends

class QXmlStreamReaderPrivate
 

Related Functions

(Note that these are not member functions.)

 QXmlStreamEntityDeclarations
 Synonym for QVector<QXmlStreamEntityDeclaration>. More...
 

Detailed Description

The QXmlStreamEntityDeclaration class represents a DTD entity declaration.

Since
4.3
Note
This class or function is reentrant.

An entity declaration consists of a name(), a notationName(), a systemId(), a publicId(), and a value().

Definition at line 251 of file qxmlstream.h.

Constructors and Destructors

◆ QXmlStreamEntityDeclaration() [1/2]

QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration ( )

Creates an empty entity declaration.

Definition at line 2731 of file qxmlstream.cpp.

2732 {
2733 }

◆ ~QXmlStreamEntityDeclaration()

QXmlStreamEntityDeclaration::~QXmlStreamEntityDeclaration ( )

Destructs this entity declaration.

Definition at line 2759 of file qxmlstream.cpp.

2760 {
2761 }

◆ QXmlStreamEntityDeclaration() [2/2]

QXmlStreamEntityDeclaration::QXmlStreamEntityDeclaration ( const QXmlStreamEntityDeclaration other)

Creates a copy of other.

Definition at line 2738 of file qxmlstream.cpp.

2739 {
2740  *this = other;
2741 }

Functions

◆ name()

QStringRef QXmlStreamEntityDeclaration::name ( ) const
inline

Returns the entity name.

Definition at line 261 of file qxmlstream.h.

Referenced by operator==().

261 { return m_name; }
QXmlStreamStringRef m_name
Definition: qxmlstream.h:252

◆ notationName()

QStringRef QXmlStreamEntityDeclaration::notationName ( ) const
inline

Returns the notation name.

Definition at line 262 of file qxmlstream.h.

Referenced by operator==().

262 { return m_notationName; }
QXmlStreamStringRef m_notationName
Definition: qxmlstream.h:252

◆ operator!=()

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

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

Definition at line 273 of file qxmlstream.h.

274  { return !operator==(other); }
bool operator==(const QXmlStreamEntityDeclaration &other) const
Compares this entity declaration with other and returns true if they are equal; otherwise returns fal...
Definition: qxmlstream.h:266

◆ operator=()

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

Assigns other to this entity declaration.

Definition at line 2746 of file qxmlstream.cpp.

2747 {
2748  m_name = other.m_name;
2750  m_systemId = other.m_systemId;
2751  m_publicId = other.m_publicId;
2752  m_value = other.m_value;
2753  return *this;
2754 }
QXmlStreamStringRef m_notationName
Definition: qxmlstream.h:252
QXmlStreamStringRef m_systemId
Definition: qxmlstream.h:252
QXmlStreamStringRef m_name
Definition: qxmlstream.h:252
QXmlStreamStringRef m_value
Definition: qxmlstream.h:252
QXmlStreamStringRef m_publicId
Definition: qxmlstream.h:252

◆ operator==()

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

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

Definition at line 266 of file qxmlstream.h.

266  {
267  return (name() == other.name()
268  && notationName() == other.notationName()
269  && systemId() == other.systemId()
270  && publicId() == other.publicId()
271  && value() == other.value());
272  }
QStringRef systemId() const
Returns the system identifier.
Definition: qxmlstream.h:263
QStringRef notationName() const
Returns the notation name.
Definition: qxmlstream.h:262
QStringRef name() const
Returns the entity name.
Definition: qxmlstream.h:261
QStringRef publicId() const
Returns the public identifier.
Definition: qxmlstream.h:264
QStringRef value() const
Returns the entity&#39;s value.
Definition: qxmlstream.h:265

◆ publicId()

QStringRef QXmlStreamEntityDeclaration::publicId ( ) const
inline

Returns the public identifier.

Definition at line 264 of file qxmlstream.h.

Referenced by operator==().

264 { return m_publicId; }
QXmlStreamStringRef m_publicId
Definition: qxmlstream.h:252

◆ systemId()

QStringRef QXmlStreamEntityDeclaration::systemId ( ) const
inline

Returns the system identifier.

Definition at line 263 of file qxmlstream.h.

Referenced by operator==().

263 { return m_systemId; }
QXmlStreamStringRef m_systemId
Definition: qxmlstream.h:252

◆ value()

QStringRef QXmlStreamEntityDeclaration::value ( ) const
inline

Returns the entity's value.

Definition at line 265 of file qxmlstream.h.

Referenced by operator==().

265 { return m_value; }
QXmlStreamStringRef m_value
Definition: qxmlstream.h:252

Friends and Related Functions

◆ QXmlStreamEntityDeclarations()

◆ QXmlStreamReaderPrivate

Definition at line 255 of file qxmlstream.h.

Properties

◆ m_name

QXmlStreamStringRef QXmlStreamEntityDeclaration::m_name
private

Definition at line 252 of file qxmlstream.h.

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

◆ m_notationName

QXmlStreamStringRef QXmlStreamEntityDeclaration::m_notationName
private

Definition at line 252 of file qxmlstream.h.

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

◆ m_publicId

QXmlStreamStringRef QXmlStreamEntityDeclaration::m_publicId
private

Definition at line 252 of file qxmlstream.h.

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

◆ m_systemId

QXmlStreamStringRef QXmlStreamEntityDeclaration::m_systemId
private

Definition at line 252 of file qxmlstream.h.

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

◆ m_value

QXmlStreamStringRef QXmlStreamEntityDeclaration::m_value
private

Definition at line 252 of file qxmlstream.h.

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

◆ reserved

void* QXmlStreamEntityDeclaration::reserved
private

Definition at line 253 of file qxmlstream.h.


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