このページでは

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 パート 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)

other の値を、このQOpcUaHistoryReadRawRequest アイテムに設定します。

関連する非メンバー

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

lhs がrhs と等しくない場合は、true を返し、それ以外の場合はfalse を返します。

2つのQOpcUaHistoryReadRawRequest 項目のstartTimestamp 、endTimestamp 、numValuesPerNode 、returnBounds 、またはnodesToRead のいずれかが等しくない場合、それらは等しくないものとみなされます。

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

lhs がrhs と等しい場合はtrue を返し、そうでない場合はfalse を返す。

2つの `QOpcUaHistoryReadRawRequest ` 項目は、その `startTimestamp`、`endTimestamp`、`numValuesPerNode`、`returnBounds `、および `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.