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()

デフォルトでは、パラメータが設定されていない読み取り項目が構築されます。

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)

lhsrhs と等しくない場合はtrue を返し、そうでない場合はfalse を返す。

2つの読み取り項目は、nodeIdattributeindexRange が等しくない場合、等しくないものとみなされる。

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

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

nodeIdattributeindexRange が等しい場合、2つの読み取り項目は等しいとみなされる。

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