QOpcUaWriteResult Class
このクラスは、書き込み操作の結果を格納します。詳細...
| ヘッダー: | #include <QOpcUaWriteResult> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
パブリック関数
| QOpcUaWriteResult() | |
| QOpcUaWriteResult(const QOpcUaWriteResult &other) | |
| QOpcUa::NodeAttribute | attribute() const |
| QString | indexRange() const |
| QString | nodeId() const |
| void | setAttribute(QOpcUa::NodeAttribute attribute) |
| void | setIndexRange(const QString &indexRange) |
| void | setNodeId(const QString &nodeId) |
| void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
| QOpcUa::UaStatusCode | statusCode() const |
| QOpcUaWriteResult & | operator=(const QOpcUaWriteResult &rhs) |
詳細な説明
OPC UA サーバーへの書き込み操作は、値の書き込みが可能だったかどうか、また書き込みに失敗した場合はその理由を示すステータスコードを返します。
サーバーから返されるステータスコードに加え、このクラスには、クライアントが結果をリクエストと照合できるように、リクエストのノード ID、属性、およびインデックス範囲も含まれています。
このクラスのオブジェクトは、QOpcUaClient::writeNodeAttributesFinished() シグナルで返され、QOpcUaClient::writeNodeAttributes() リクエストの一部であった書き込み操作の結果を含みます。
QOpcUaClient::writeNodeAttributes()、QOpcUaClient::writeNodeAttributesFinished()、およびQOpcUaWriteItemも参照してください 。
メンバ関数のドキュメント
QOpcUaWriteResult::QOpcUaWriteResult()
default は、パラメータが設定されていない書き込み結果を生成します。
QOpcUaWriteResult::QOpcUaWriteResult(const QOpcUaWriteResult &other)
other から書き込み結果を生成します。
QOpcUa::NodeAttribute QOpcUaWriteResult::attribute() const
書き込み結果の属性を返します。
setAttribute()も参照してください 。
QString QOpcUaWriteResult::indexRange() const
書き込み結果のインデックス範囲を返します。
setIndexRange()も参照してください 。
QString QOpcUaWriteResult::nodeId() const
書き込み結果のノード ID を返します。
setNodeId()も参照してください 。
void QOpcUaWriteResult::setAttribute(QOpcUa::NodeAttribute attribute)
書き込み結果の属性を `attribute` に設定します。
attribute()も参照してください 。
void QOpcUaWriteResult::setIndexRange(const QString &indexRange)
書き込み結果のインデックス範囲を `indexRange` に設定します。
indexRange()も参照してください 。
void QOpcUaWriteResult::setNodeId(const QString &nodeId)
書き込み結果のノードIDをnodeId に設定します。
nodeId()も参照してください 。
void QOpcUaWriteResult::setStatusCode(QOpcUa::UaStatusCode statusCode)
書き込み結果のステータスコードをstatusCode に設定します。
statusCode()も参照してください 。
QOpcUa::UaStatusCode QOpcUaWriteResult::statusCode() const
書き込み結果のステータスコードを返します。
setStatusCode()も参照してください 。
QOpcUaWriteResult &QOpcUaWriteResult::operator=(const QOpcUaWriteResult &rhs)
この書き込み結果に、rhs の値を設定します。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.