QOpcUaDiagnosticInfo Class

The QOpcUaDiagnosticInfo class models the OPC UA built-in type DiagnosticInfo. 更多...

头: #include <QOpcUaDiagnosticInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.7

公共函数

QOpcUaDiagnosticInfo ()
QOpcUaDiagnosticInfo (const QOpcUaDiagnosticInfo & other )
QOpcUaDiagnosticInfo (QOpcUaDiagnosticInfo && other )
~QOpcUaDiagnosticInfo ()
QString additionalInfo () const
bool hasAdditionalInfo () const
bool hasInnerDiagnosticInfo () const
bool hasInnerStatusCode () const
bool hasLocale () const
bool hasLocalizedText () const
bool hasNamespaceUri () const
bool hasSymbolicId () const
QOpcUaDiagnosticInfo innerDiagnosticInfo () const
QOpcUaDiagnosticInfo & innerDiagnosticInfoRef ()
QOpcUa::UaStatusCode innerStatusCode () const
qint32 locale () const
qint32 localizedText () const
qint32 namespaceUri () const
void setAdditionalInfo (const QString & newAdditionalInfo )
void setHasAdditionalInfo (bool newHasAdditionalInfo )
void setHasInnerDiagnosticInfo (bool newHasInnerDiagnosticInfo )
void setHasInnerStatusCode (bool newHasInnerStatusCode )
void setHasLocale (bool newHasLocale )
void setHasLocalizedText (bool newHasLocalizedText )
void setHasNamespaceUri (bool newHasNamespaceUri )
void setHasSymbolicId (bool newHasSymbolicId )
void setInnerDiagnosticInfo (const QOpcUaDiagnosticInfo & newInnerDiagnosticInfo )
void setInnerStatusCode (QOpcUa::UaStatusCode newInnerStatusCode )
void setLocale (qint32 newLocale )
void setLocalizedText (qint32 newLocalizedText )
void setNamespaceUri (qint32 newNamespaceUri )
void setSymbolicId (qint32 newSymbolicId )
void swap (QOpcUaDiagnosticInfo & other )
qint32 symbolicId () const
QVariant operator QVariant () const
QOpcUaDiagnosticInfo & operator= (const QOpcUaDiagnosticInfo & rhs )
QOpcUaDiagnosticInfo & operator= (QOpcUaDiagnosticInfo && other )
bool operator!= (const QOpcUaDiagnosticInfo & lhs , const QOpcUaDiagnosticInfo & rhs )
bool operator== (const QOpcUaDiagnosticInfo & lhs , const QOpcUaDiagnosticInfo & rhs )

详细描述

The DiagnosticInfo type is used to convey diagnostics for some operations on the server. The qint32 type members refer to an index in the stringTable field of the OPC UA response header which is currently not supported by Qt OPC UA.

成员函数文档编制

QOpcUaDiagnosticInfo:: QOpcUaDiagnosticInfo ()

Constructs a diagnostic info.

QOpcUaDiagnosticInfo:: QOpcUaDiagnosticInfo (const QOpcUaDiagnosticInfo & other )

Constructs a diagnostic info from other .

[noexcept] QOpcUaDiagnosticInfo:: QOpcUaDiagnosticInfo ( QOpcUaDiagnosticInfo && other )

Move-constructs a new diagnostic info from other .

注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

[noexcept] QOpcUaDiagnosticInfo:: ~QOpcUaDiagnosticInfo ()

Destroys this diagnostic info object.

QString QOpcUaDiagnosticInfo:: additionalInfo () const

Returns the additional information of this diagnostic info.

另请参阅 setAdditionalInfo ().

bool QOpcUaDiagnosticInfo:: hasAdditionalInfo () const

返回 true if this diagnostic info has additional information.

另请参阅 setHasAdditionalInfo ().

bool QOpcUaDiagnosticInfo:: hasInnerDiagnosticInfo () const

返回 true if this diagnostic info has an inner diagnostic info.

另请参阅 setHasInnerDiagnosticInfo ().

bool QOpcUaDiagnosticInfo:: hasInnerStatusCode () const

返回 true if this diagnostic info has an inner status code.

另请参阅 setHasInnerStatusCode ().

bool QOpcUaDiagnosticInfo:: hasLocale () const

返回 true if this diagnostic info has a locale.

另请参阅 setHasLocale ().

bool QOpcUaDiagnosticInfo:: hasLocalizedText () const

返回 true if this diagnostic info has a localized text.

另请参阅 setHasLocalizedText ().

bool QOpcUaDiagnosticInfo:: hasNamespaceUri () const

返回 true if this diagnostic info has a namespace URI.

另请参阅 setHasNamespaceUri ().

bool QOpcUaDiagnosticInfo:: hasSymbolicId () const

返回 true if this diagnostic info has a symbolic id.

另请参阅 setHasSymbolicId ().

QOpcUaDiagnosticInfo QOpcUaDiagnosticInfo:: innerDiagnosticInfo () const

Returns the inner diagnostic info of this diagnostic info.

另请参阅 setInnerDiagnosticInfo ().

QOpcUaDiagnosticInfo &QOpcUaDiagnosticInfo:: innerDiagnosticInfoRef ()

Returns a reference to the inner diagnostic info of this diagnostic info.

QOpcUa::UaStatusCode QOpcUaDiagnosticInfo:: innerStatusCode () const

Returns the inner status code of this diagnostic info.

另请参阅 setInnerStatusCode ().

qint32 QOpcUaDiagnosticInfo:: locale () const

Returns the locale of this diagnostic info.

另请参阅 setLocale ().

qint32 QOpcUaDiagnosticInfo:: localizedText () const

Returns the localized text of this diagnostic info.

另请参阅 setLocalizedText ().

qint32 QOpcUaDiagnosticInfo:: namespaceUri () const

Returns the namespace URI of this diagnostic info.

另请参阅 setNamespaceUri ().

void QOpcUaDiagnosticInfo:: setAdditionalInfo (const QString & newAdditionalInfo )

Sets the additional information of this diagnostic info to newAdditionalInfo .

另请参阅 additionalInfo ().

void QOpcUaDiagnosticInfo:: setHasAdditionalInfo ( bool newHasAdditionalInfo )

Sets the information whether this diagnostic info has additional information to newHasAdditionalInfo .

另请参阅 hasAdditionalInfo ().

void QOpcUaDiagnosticInfo:: setHasInnerDiagnosticInfo ( bool newHasInnerDiagnosticInfo )

Sets the information whether this diagnostic info has an inner diagnostic info to newHasInnerDiagnosticInfo .

另请参阅 hasInnerDiagnosticInfo ().

void QOpcUaDiagnosticInfo:: setHasInnerStatusCode ( bool newHasInnerStatusCode )

Sets the information whether this diagnostic info has an inner status code to newHasInnerStatusCode .

另请参阅 hasInnerStatusCode ().

void QOpcUaDiagnosticInfo:: setHasLocale ( bool newHasLocale )

Sets the information whether this diagnostic info has a locale to newHasLocale .

另请参阅 hasLocale ().

void QOpcUaDiagnosticInfo:: setHasLocalizedText ( bool newHasLocalizedText )

Sets the information whether this diagnostic info has a localized text to newHasLocalizedText .

另请参阅 hasLocalizedText ().

void QOpcUaDiagnosticInfo:: setHasNamespaceUri ( bool newHasNamespaceUri )

Sets the information whether this diagnostic info has a namespace URI to newHasNamespaceUri .

另请参阅 hasNamespaceUri ().

void QOpcUaDiagnosticInfo:: setHasSymbolicId ( bool newHasSymbolicId )

Sets the information whether this diagnostic info has a symbolic id to newHasSymbolicId .

另请参阅 hasSymbolicId ().

void QOpcUaDiagnosticInfo:: setInnerDiagnosticInfo (const QOpcUaDiagnosticInfo & newInnerDiagnosticInfo )

Sets the inner diagnostic info of this diagnostic info to newInnerDiagnosticInfo .

另请参阅 innerDiagnosticInfo ().

void QOpcUaDiagnosticInfo:: setInnerStatusCode ( QOpcUa::UaStatusCode newInnerStatusCode )

Sets the inner status code of this diagnostic info to newInnerStatusCode .

另请参阅 innerStatusCode ().

void QOpcUaDiagnosticInfo:: setLocale ( qint32 newLocale )

Sets the locale of this diagnostic info to newLocale .

另请参阅 locale ().

void QOpcUaDiagnosticInfo:: setLocalizedText ( qint32 newLocalizedText )

Sets the localized text of this diagnostic info to newLocalizedText .

另请参阅 localizedText ().

void QOpcUaDiagnosticInfo:: setNamespaceUri ( qint32 newNamespaceUri )

Sets the namespace URI of this diagnostic info to newNamespaceUri .

另请参阅 namespaceUri ().

void QOpcUaDiagnosticInfo:: setSymbolicId ( qint32 newSymbolicId )

Sets the symbolic id of this diagnostic info to newSymbolicId .

另请参阅 symbolicId ().

[noexcept] void QOpcUaDiagnosticInfo:: swap ( QOpcUaDiagnosticInfo & other )

Swaps diagnostic info object other with this diagnostic info object. This operation is very fast and never fails.

qint32 QOpcUaDiagnosticInfo:: symbolicId () const

Returns the symbolic id of this diagnostic info.

另请参阅 setSymbolicId ().

QVariant QOpcUaDiagnosticInfo:: operator QVariant () const

返回 QVariant containing this diagnostic info.

QOpcUaDiagnosticInfo &QOpcUaDiagnosticInfo:: operator= (const QOpcUaDiagnosticInfo & rhs )

设置值为 rhs in this diagnostic info.

[noexcept] QOpcUaDiagnosticInfo &QOpcUaDiagnosticInfo:: operator= ( QOpcUaDiagnosticInfo && other )

移动赋值 other 到此 QOpcUaDiagnosticInfo 实例。

注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

相关非成员

[noexcept] bool operator!= (const QOpcUaDiagnosticInfo & lhs , const QOpcUaDiagnosticInfo & rhs )

返回 true if lhs 不等于 rhs .

[noexcept] bool operator== (const QOpcUaDiagnosticInfo & lhs , const QOpcUaDiagnosticInfo & rhs )

返回 true if lhs 等于 rhs .