QOpcUaHistoryEvent Class

このクラスはノードの履歴イベントを保存します。詳細...

ヘッダ #include <QOpcUaHistoryEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
以来:Qt 6.7

パブリック関数

QOpcUaHistoryEvent()
QOpcUaHistoryEvent(const QString &nodeId)
QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)
QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other)
~QOpcUaHistoryEvent()
void addEvent(const QVariantList &value)
int count() const
QList<QVariantList> events() const
QString nodeId() const
void setNodeId(const QString &nodeId)
void setStatusCode(QOpcUa::UaStatusCode statusCode)
QOpcUa::UaStatusCode statusCode() const
void swap(QOpcUaHistoryEvent &other)
QOpcUaHistoryEvent &operator=(QOpcUaHistoryEvent &&other)
QOpcUaHistoryEvent &operator=(const QOpcUaHistoryEvent &other)
bool operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
bool operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)

詳細説明

履歴イベントの読み取り要求が処理されるとき、このクラスのインスタンスは、どのノードが読み取られたか、そのイベントとステータスコードに関する情報を格納するために使用されます。履歴読み取り応答の完了シグナルは QOpcUaHistoryEvent オブジェクトのリストを返し、これを解析してリクエストの結果を確認することができます。

メンバ関数ドキュメント

QOpcUaHistoryEvent::QOpcUaHistoryEvent()

無効な履歴イベント項目を構築します。

[explicit] QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QString &nodeId)

履歴イベント項目を構築し、それがどのノードに対応するかを格納する。

QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)

other から履歴イベント項目を構築する。

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

Move-新しいヒストリイベントオブジェクトをother から構築する。

注: 移動元のオブジェクトother は、部分的に形成された状態に置かれる。この状態では、有効な操作は破棄と新しい値の割り当てのみである。

[noexcept] QOpcUaHistoryEvent::~QOpcUaHistoryEvent()

履歴イベント項目を破棄する。

void QOpcUaHistoryEvent::addEvent(const QVariantList &value)

value で指定されたイベントフィールドリストを追加する。

int QOpcUaHistoryEvent::count() const

利用可能なイベントの数を返します。

QList<QVariantList> QOpcUaHistoryEvent::events() const

履歴読み込みリクエストの結果を含むQVariantList オブジェクトのリストを返します。

QString QOpcUaHistoryEvent::nodeId() const

イベントが格納されているノードの nodeId を返します。

setNodeId()も参照してください

void QOpcUaHistoryEvent::setNodeId(const QString &nodeId)

nodeIdnodeId に設定する。

nodeId()も参照のこと

void QOpcUaHistoryEvent::setStatusCode(QOpcUa::UaStatusCode statusCode)

ステータスコードをstatusCode に設定する。

statusCode()も参照のこと

QOpcUa::UaStatusCode QOpcUaHistoryEvent::statusCode() const

履歴イベントの取得中にエラーが発生したかどうかを示すステータスコードを返します。

setStatusCode()も参照ください

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

ヒストリー・イベント・オブジェクトother をこのヒストリー・イベント・オブジェクトと交換する。この操作は非常に高速で、失敗することはない。

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

Move-assignother をこのQOpcUaHistoryEvent インスタンスに割り当てる。

注: 移動元のオブジェクトother は、部分的に形成された状態に置かれる。この状態では、有効な操作は破壊と新しい値の割り当てのみである。

QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(const QOpcUaHistoryEvent &other)

この履歴イベント項目のother からの値を設定する。

関連する非会員

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

lhsrhs と等しくない場合はtrue を返す。

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

rhslhs が同じ値を含む場合、true を返す。

© 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.