QOpcUaHistoryReadRawRequest Class
このクラスは、サーバーに履歴データを要求するために必要な情報を格納します。詳細...
ヘッダー | #include <QOpcUaHistoryReadRawRequest> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
以来: | Qt 6.3 |
パブリック関数
QOpcUaHistoryReadRawRequest() | |
(since 6.7) | QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn) |
QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false) | |
QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other) | |
~QOpcUaHistoryReadRawRequest() | |
void | addNodeToRead(const QOpcUaReadItem &nodeToRead) |
QDateTime | endTimestamp() const |
QList<QOpcUaReadItem> | nodesToRead() const |
quint32 | numValuesPerNode() const |
bool | returnBounds() const |
void | setEndTimestamp(const QDateTime &endTimestamp) |
void | setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead) |
void | setNumValuesPerNode(quint32 numValuesPerNode) |
void | setReturnBounds(bool returnBounds) |
void | setStartTimestamp(const QDateTime &startTimestamp) |
(since 6.7) void | setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn) |
QDateTime | startTimestamp() const |
void | swap(QOpcUaHistoryReadRawRequest &other) |
(since 6.7) QOpcUa::TimestampsToReturn | timestampsToReturn() const |
QOpcUaHistoryReadRawRequest & | operator=(const QOpcUaHistoryReadRawRequest &other) |
関連する非メンバー
bool | operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
bool | operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
詳細説明
これは、OPC UA 1.04 part 11の6.4.3で定義されている履歴データを読み込むためのOPC UA ReadRawModifiedDetailsのQt OPC UA 表現です。
サーバーに履歴データを要求する場合、どのデータを収集すべきかを知るために、いくつかの値をサーバーに提供する必要があります。QOpcUaHistoryReadRawRequest クラスは、必要な値を提供します。startTimestamp とendTimestamp は、履歴データを収集するタイムレンジを定義します。nodesToRead は、履歴データを収集するノードを定義します。numValuesPerNode は、ノードごとに返されるデータ値の最大数を定義します。returnBounds は、境界値を結果に含めるかどうかを定義します。
メンバ関数ドキュメント
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest()
無効な QOpcUaHistoryReadRawRequest を構築します。
[explicit, since 6.7]
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn)
与えられた値で QOpcUaHistoryReadRawRequest アイテムを構築します。timestampsToReturn パラメータは、各値に対して返すタイムスタンプを決定します。
この関数は Qt 6.7 で導入されました。
[explicit]
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false)
与えられた値で QOpcUaHistoryReadRawRequest アイテムを構築します。
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other)
other から QOpcUaHistoryReadRawRequest アイテムを構築します。
[noexcept]
QOpcUaHistoryReadRawRequest::~QOpcUaHistoryReadRawRequest()
リクエストオブジェクトを破棄する。
void QOpcUaHistoryReadRawRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)
nodeToRead リストにノードを追加する。
QDateTime QOpcUaHistoryReadRawRequest::endTimestamp() const
終了タイムスタンプを返す。
setEndTimestamp()も参照 。
QList<QOpcUaReadItem> QOpcUaHistoryReadRawRequest::nodesToRead() const
読み込むノードのリストを返します。
setNodesToRead()も参照ください 。
quint32 QOpcUaHistoryReadRawRequest::numValuesPerNode() const
ノードあたりの値の数を返します。
setNumValuesPerNode()も参照してください 。
bool QOpcUaHistoryReadRawRequest::returnBounds() const
戻り値の境界を要求するかどうかを返します。
setReturnBounds()も参照 。
void QOpcUaHistoryReadRawRequest::setEndTimestamp(const QDateTime &endTimestamp)
取得する履歴データのendTimestamp を設定する。
endTimestamp()も参照のこと 。
void QOpcUaHistoryReadRawRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
nodesToRead リストを設定する。
nodesToRead()も参照のこと 。
void QOpcUaHistoryReadRawRequest::setNumValuesPerNode(quint32 numValuesPerNode)
numValuesPerNode を設定して、フェッチするノードごとの値の数を示す。
numValuesPerNode()も参照してください 。
void QOpcUaHistoryReadRawRequest::setReturnBounds(bool returnBounds)
戻り値の境界を要求するかどうかを示すためにreturnBounds を設定する。
returnBounds()も参照のこと 。
void QOpcUaHistoryReadRawRequest::setStartTimestamp(const QDateTime &startTimestamp)
取得する履歴データのstartTimestamp を設定する。
startTimestamp()も参照のこと 。
[since 6.7]
void QOpcUaHistoryReadRawRequest::setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)
各値に対して返す選択されたタイムスタンプをtimestampsToReturn に設定します。
この関数は Qt 6.7 で導入されました。
timestampsToReturn()も参照してください 。
QDateTime QOpcUaHistoryReadRawRequest::startTimestamp() const
開始タイムスタンプを返す。
setStartTimestamp()も参照 。
[noexcept]
void QOpcUaHistoryReadRawRequest::swap(QOpcUaHistoryReadRawRequest &other)
このリクエストインスタンスをother と交換する。この関数は非常に高速で、失敗することはない。
[since 6.7]
QOpcUa::TimestampsToReturn QOpcUaHistoryReadRawRequest::timestampsToReturn() const
各値に対して返す選択されたタイムスタンプを返します。
この関数は Qt 6.7 で導入されました。
setTimestampsToReturn()も参照してください 。
QOpcUaHistoryReadRawRequest &QOpcUaHistoryReadRawRequest::operator=(const QOpcUaHistoryReadRawRequest &other)
このQOpcUaHistoryReadRawRequest アイテムにother の値を設定する。
関連する非会員
[noexcept]
bool operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
lhs がrhs と等しくない場合はtrue
を返し、そうでない場合はfalse
を返す。
startTimestamp
,endTimestamp
,numValuesPerNode
,returnBounds
またはnodesToRead
が等しくない場合、2つのQOpcUaHistoryReadRawRequest 項目は等しくないものとみなされる。
[noexcept]
bool operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
lhs がrhs と等しい場合はtrue
を返し、そうでない場合はfalse
を返す。
startTimestamp
,endTimestamp
,numValuesPerNode
,returnBounds
,nodesToRead
が等しい場合、2つのQOpcUaHistoryReadRawRequest アイテムは等しいとみなされる。
© 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.