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 part 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 アイテムを構築します。
[noexcept]
QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other)
move-新しい読み取りイベント要求オブジェクトを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)
Move-assignother をこのQOpcUaHistoryReadEventRequest インスタンスに割り当てる。
注: 移動元のオブジェクトother は、部分的に形成された状態に置かれる。この状態では、有効な操作は破壊と新しい値の割り当てのみである。
QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(const QOpcUaHistoryReadEventRequest &other)
このQOpcUaHistoryReadEventRequest アイテムにother からの値を設定する。
関連する非会員
[noexcept]
bool operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
lhs がrhs と等しくない場合はtrue
を返し、そうでない場合はfalse
を返す。
startTimestamp
,endTimestamp
,numValuesPerNode
,filter
またはnodesToRead
が等しくない場合、2つのQOpcUaHistoryReadEventRequest 項目は等しくないものとみなされる。
[noexcept]
bool operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
lhs がrhs と等しい場合はtrue
を返し、そうでない場合はfalse
を返す。
startTimestamp
,endTimestamp
,numValuesPerNode
,filter
,nodesToRead
が等しい場合、2つのQOpcUaHistoryReadEventRequest アイテムは等しいとみなされる。
© 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.