QOpcUaHistoryReadEventRequest Class
このクラスは、サーバーから過去のデータを取得するために必要な情報を格納します。詳細...
| ヘッダー: | #include <QOpcUaHistoryReadEventRequest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| 以下より: | Qt 6.7 |
パブリック関数
| QOpcUaHistoryReadEventRequest() | |
| QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter) | |
| QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other) | |
| QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other) | |
| ~QOpcUaHistoryReadEventRequest() | |
| void | addNodeToRead(const QOpcUaReadItem &nodeToRead) |
| QDateTime | endTimestamp() const |
| QOpcUaMonitoringParameters::EventFilter | filter() const |
| QList<QOpcUaReadItem> | nodesToRead() const |
| quint32 | numValuesPerNode() const |
| void | setEndTimestamp(const QDateTime &endTimestamp) |
| void | setFilter(const QOpcUaMonitoringParameters::EventFilter &filter) |
| void | setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead) |
| void | setNumValuesPerNode(quint32 numValuesPerNode) |
| void | setStartTimestamp(const QDateTime &startTimestamp) |
| QDateTime | startTimestamp() const |
| void | swap(QOpcUaHistoryReadEventRequest &other) |
| QOpcUaHistoryReadEventRequest & | operator=(QOpcUaHistoryReadEventRequest &&other) |
| QOpcUaHistoryReadEventRequest & | operator=(const QOpcUaHistoryReadEventRequest &other) |
関連する非メンバ
| bool | operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs) |
| bool | operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs) |
詳細な説明
これは、OPC-UAパート11の6.4.2で定義されている履歴データを読み取るためのOPC UA ReadEventDetailsのQt OPC UA による表現です。
サーバーに履歴データを要求する場合、どのデータを収集すべきかをサーバーに知らせるために、いくつかの値をサーバーに提供する必要があります。 QOpcUaHistoryReadEventRequest クラスは、必要な値を提供します。startTimestamp およびendTimestamp は、履歴イベントを収集する時間範囲を定義します。nodesToRead は、履歴データを収集するノードを定義します。numValuesPerNode は、ノードごとに返されるイベントの最大数を定義します。filter は、どのイベントと、そのどのフィールドを返すかを決定するために使用されるイベントフィルタです。
メンバ関数のドキュメント
QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest()
無効な QOpcUaHistoryReadEventRequest を生成します。
[explicit] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter)
指定された値を使用して、QOpcUaHistoryReadEventRequest オブジェクトを作成します。
QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other)
other から QOpcUaHistoryReadEventRequest 項目を生成します。
[constexpr noexcept default] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other)
other から新しい読み取りイベントリクエストオブジェクトを移動生成します。
注:移動元のオブジェクト `other `は 、部分的に形成された状態になります。この状態では、有効な操作は破棄と新しい値への代入のみです。
[noexcept] QOpcUaHistoryReadEventRequest::~QOpcUaHistoryReadEventRequest()
リクエストオブジェクトを破棄します。
void QOpcUaHistoryReadEventRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)
nodeToRead リストにノードを追加します。
QDateTime QOpcUaHistoryReadEventRequest::endTimestamp() const
終了時刻のタイムスタンプを返します。
setEndTimestamp()も参照してください 。
QOpcUaMonitoringParameters::EventFilter QOpcUaHistoryReadEventRequest::filter() const
過去のイベントを取得するために使用されるイベントフィルターを返します。
setFilter()も参照してください 。
QList<QOpcUaReadItem> QOpcUaHistoryReadEventRequest::nodesToRead() const
読み込むノードのリストを返します。
setNodesToRead()も参照してください 。
quint32 QOpcUaHistoryReadEventRequest::numValuesPerNode() const
ノードごとの値の数を返します。
setNumValuesPerNode()も参照してください 。
void QOpcUaHistoryReadEventRequest::setEndTimestamp(const QDateTime &endTimestamp)
取得する履歴データについて、endTimestamp を設定します。
endTimestamp()も参照してください 。
void QOpcUaHistoryReadEventRequest::setFilter(const QOpcUaMonitoringParameters::EventFilter &filter)
過去のイベントを取得するために使用されるイベントフィルターを「filter 」に設定します。
filter()も参照してください 。
void QOpcUaHistoryReadEventRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
nodesToRead リストを設定します。
nodesToRead()も参照してください 。
void QOpcUaHistoryReadEventRequest::setNumValuesPerNode(quint32 numValuesPerNode)
numValuesPerNode を設定し、ノードごとに取得する値の数を指定します。
numValuesPerNode()も参照してください 。
void QOpcUaHistoryReadEventRequest::setStartTimestamp(const QDateTime &startTimestamp)
取得する履歴データについて、startTimestamp を設定します。
startTimestamp()も参照してください 。
QDateTime QOpcUaHistoryReadEventRequest::startTimestamp() const
開始時刻のタイムスタンプを返します。
setStartTimestamp()も参照してください 。
[noexcept] void QOpcUaHistoryReadEventRequest::swap(QOpcUaHistoryReadEventRequest &other)
スワップは、イベント要求オブジェクト `other ` を、この読み取りイベント要求オブジェクトと交換します。この操作は非常に高速で、失敗することはありません。
[noexcept] QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(QOpcUaHistoryReadEventRequest &&other)
other をこのQOpcUaHistoryReadEventRequest インスタンスに割り当てて移動します。
注: 移動元のオブジェクト other は 、部分的に形成された状態になります。この状態では、有効な操作は破棄と新しい値への代入のみです。
QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(const QOpcUaHistoryReadEventRequest &other)
other の値を、このQOpcUaHistoryReadEventRequest 項目に設定します。
関連する非メンバー
[noexcept] bool operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
lhs がrhs と等しくない場合はtrue を返し、それ以外の場合はfalse を返す。
2つのQOpcUaHistoryReadEventRequest 項目のstartTimestamp 、endTimestamp 、numValuesPerNode 、filter 、またはnodesToRead のいずれかが等しくない場合、それらは等しくないものとみなされます。
[noexcept] bool operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
lhs がrhs と等しい場合は、true を返し、そうでない場合はfalse を返す。
2つのQOpcUaHistoryReadEventRequest 項目は、startTimestamp 、endTimestamp 、numValuesPerNode 、filter 、およびnodesToRead が等しい場合に等しいとみなされます。
© 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.