このページでは

QOpcUaReadItem Class

このクラスは、読み取り操作のオプションを格納します。詳細...

ヘッダー: #include <QOpcUaReadItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

パブリック関数

QOpcUaReadItem()
QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())
QOpcUaReadItem(const QOpcUaReadItem &other)
QOpcUa::NodeAttribute attribute() const
QString indexRange() const
QString nodeId() const
void setAttribute(QOpcUa::NodeAttribute attribute)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
QOpcUaReadItem &operator=(const QOpcUaReadItem &rhs)
bool operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)
bool operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)

詳細な説明

OPC UA サーバーに対する読み取り操作は、サーバー上のノードの属性の値全体、またはその値の特定のインデックス範囲を返します。このクラスには、バックエンドがサーバーに対して読み取りリクエストを行うために必要な情報が含まれています。

このクラスの 1 つまたは複数のオブジェクトが、QOpcUaClient::readNodeAttributes() 操作のリクエストを構成します。

「 QOpcUaClient::readNodeAttributes()」および「QOpcUaReadResult 」も参照してください 。

メンバ関数のドキュメント

QOpcUaReadItem::QOpcUaReadItem()

default は、パラメータが設定されていない読み取り項目を作成します。

QOpcUaReadItem::QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())

ノード `nodeId` の属性 `attr ` について、インデックス範囲 `indexRange ` に対応する読み取り項目を作成します。

QOpcUaReadItem::QOpcUaReadItem(const QOpcUaReadItem &other)

other から読み取り項目を作成します。

QOpcUa::NodeAttribute QOpcUaReadItem::attribute() const

ノードの属性「id」を返します。

setAttribute()も参照してください 。

QString QOpcUaReadItem::indexRange() const

インデックスの範囲を返します。

setIndexRange()も参照してください 。

QString QOpcUaReadItem::nodeId() const

ノード ID を返します。

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

void QOpcUaReadItem::setAttribute(QOpcUa::NodeAttribute attribute)

ノードの属性「id」を「attribute 」に設定します。

attribute()も参照してください 。

void QOpcUaReadItem::setIndexRange(const QString &indexRange)

インデックスの範囲をindexRange に設定します。

indexRange()も参照してください 。

void QOpcUaReadItem::setNodeId(const QString &nodeId)

ノード ID をnodeId に設定します。

nodeId()も参照してください 。

QOpcUaReadItem &QOpcUaReadItem::operator=(const QOpcUaReadItem &rhs)

この読み取り項目に、rhs の値を設定します。

関連する非メンバー

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

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

2つの読み取り項目のnodeId 、attribute 、またはindexRange のいずれかが等しくない場合、それらは等しくないものとみなされます。

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

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

2つの読み取り項目のnodeId 、attribute 、およびindexRange が等しい場合、それらは等しいとみなされる。

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