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()
デフォルトでは、パラメータが設定されていない書き込み結果が構築される。
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 の値を設定する。
© 2025 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.