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.
Constructs a diagnostic info.
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.
Returns the additional information of this diagnostic info.
另请参阅 setAdditionalInfo ().
返回
true
if this diagnostic info has additional information.
另请参阅 setHasAdditionalInfo ().
返回
true
if this diagnostic info has an inner diagnostic info.
另请参阅 setHasInnerDiagnosticInfo ().
返回
true
if this diagnostic info has an inner status code.
另请参阅 setHasInnerStatusCode ().
返回
true
if this diagnostic info has a locale.
另请参阅 setHasLocale ().
返回
true
if this diagnostic info has a localized text.
另请参阅 setHasLocalizedText ().
返回
true
if this diagnostic info has a namespace URI.
另请参阅 setHasNamespaceUri ().
返回
true
if this diagnostic info has a symbolic id.
另请参阅 setHasSymbolicId ().
Returns the inner diagnostic info of this diagnostic info.
另请参阅 setInnerDiagnosticInfo ().
Returns a reference to the inner diagnostic info of this diagnostic info.
Returns the inner status code of this diagnostic info.
另请参阅 setInnerStatusCode ().
Returns the locale of this diagnostic info.
另请参阅 setLocale ().
Returns the localized text of this diagnostic info.
另请参阅 setLocalizedText ().
Returns the namespace URI of this diagnostic info.
另请参阅 setNamespaceUri ().
Sets the additional information of this diagnostic info to newAdditionalInfo .
另请参阅 additionalInfo ().
Sets the information whether this diagnostic info has additional information to newHasAdditionalInfo .
另请参阅 hasAdditionalInfo ().
Sets the information whether this diagnostic info has an inner diagnostic info to newHasInnerDiagnosticInfo .
另请参阅 hasInnerDiagnosticInfo ().
Sets the information whether this diagnostic info has an inner status code to newHasInnerStatusCode .
另请参阅 hasInnerStatusCode ().
Sets the information whether this diagnostic info has a locale to newHasLocale .
另请参阅 hasLocale ().
Sets the information whether this diagnostic info has a localized text to newHasLocalizedText .
另请参阅 hasLocalizedText ().
Sets the information whether this diagnostic info has a namespace URI to newHasNamespaceUri .
另请参阅 hasNamespaceUri ().
Sets the information whether this diagnostic info has a symbolic id to newHasSymbolicId .
另请参阅 hasSymbolicId ().
Sets the inner diagnostic info of this diagnostic info to newInnerDiagnosticInfo .
另请参阅 innerDiagnosticInfo ().
Sets the inner status code of this diagnostic info to newInnerStatusCode .
另请参阅 innerStatusCode ().
Sets the locale of this diagnostic info to newLocale .
另请参阅 locale ().
Sets the localized text of this diagnostic info to newLocalizedText .
另请参阅 localizedText ().
Sets the namespace URI of this diagnostic info to newNamespaceUri .
另请参阅 namespaceUri ().
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.
Returns the symbolic id of this diagnostic info.
另请参阅 setSymbolicId ().
返回 QVariant containing this diagnostic info.
设置值为 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
.