QOpcUaHistoryData Class
このクラスはノードの履歴データ値を保存します。詳細...
ヘッダー | #include <QOpcUaHistoryData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
以来: | Qt 6.3 |
パブリック関数
QOpcUaHistoryData() | |
QOpcUaHistoryData(const QString &nodeId) | |
QOpcUaHistoryData(const QOpcUaHistoryData &other) | |
~QOpcUaHistoryData() | |
void | addValue(const QOpcUaDataValue &value) |
int | count() const |
QString | nodeId() const |
QList<QOpcUaDataValue> | result() const |
void | setNodeId(const QString &nodeId) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaHistoryData &other) |
QOpcUaHistoryData & | operator=(const QOpcUaHistoryData &other) |
詳しい説明
履歴データの読み取り要求が処理されているとき、このクラスのインスタンスは、どのノードが読み取られたか、その値、ステータスコードに関する情報を格納するために使用されます。履歴読み取り要求の完了シグナルは QOpcUaHistoryData オブジェクトのリストを返し、これを解析して要求の結果を確認することができます。
メンバ関数ドキュメント
QOpcUaHistoryData::QOpcUaHistoryData()
無効な履歴データ項目を構築します。
[explicit]
QOpcUaHistoryData::QOpcUaHistoryData(const QString &nodeId)
履歴データ項目を構築し、それがどのノードに対応するかを格納する。
QOpcUaHistoryData::QOpcUaHistoryData(const QOpcUaHistoryData &other)
other から履歴データ項目を構築する。
[noexcept]
QOpcUaHistoryData::~QOpcUaHistoryData()
履歴データ項目を破棄する。
void QOpcUaHistoryData::addValue(const QOpcUaDataValue &value)
value で与えられるデータ値オブジェクトを追加する。
int QOpcUaHistoryData::count() const
利用可能なデータ値オブジェクトの数を返します。
QString QOpcUaHistoryData::nodeId() const
データが格納されているノードの nodeId を返します。
setNodeId()も参照してください 。
QList<QOpcUaDataValue> QOpcUaHistoryData::result() const
履歴読み込みリクエストの結果を含むデータ値オブジェクトのリストを返します。
void QOpcUaHistoryData::setNodeId(const QString &nodeId)
nodeId をnodeId に設定する。
nodeId()も参照のこと 。
void QOpcUaHistoryData::setStatusCode(QOpcUa::UaStatusCode statusCode)
ステータスコードをstatusCode に設定する。
statusCode()も参照のこと 。
QOpcUa::UaStatusCode QOpcUaHistoryData::statusCode() const
履歴データの取得中にエラーが発生したかどうかを示すステータスコードを返します。
setStatusCode()も参照 。
[noexcept]
void QOpcUaHistoryData::swap(QOpcUaHistoryData &other)
このデータ値インスタンスをother と交換する。この関数は非常に高速で、失敗することはない。
QOpcUaHistoryData &QOpcUaHistoryData::operator=(const QOpcUaHistoryData &other)
この履歴データ項目にother からの値を設定する。
© 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.