このページでは

QOpcUaSimpleAttributeOperand Class

OPC UAのSimpleAttributeOperand型。詳細...

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

パブリック関数

QOpcUaSimpleAttributeOperand()
QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)
QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)
QOpcUa::NodeAttribute attributeId() const
QList<QOpcUaQualifiedName> browsePath() const
QList<QOpcUaQualifiedName> &browsePathRef()
QString indexRange() const
void setAttributeId(QOpcUa::NodeAttribute attributeId)
void setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)
void setIndexRange(const QString &indexRange)
void setTypeId(const QString &typeId)
QString typeId() const
operator QVariant() const
QOpcUaSimpleAttributeOperand &operator=(const QOpcUaSimpleAttributeOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)
bool operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)

詳細な説明

SimpleAttributeOperand は、OPC UA 1.05 第 4 部 7.7.4.5 に規定されています。これは、ノード属性がオペランドとして必要とされる場合に使用されます。

たとえば、次の単純属性オペランドは、ベースイベント型の「Severity」フィールドの値を表しています。

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

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

default は、パラメータが設定されていない単純な属性オペランドを生成します。

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))

typeId 型のオブジェクトまたは変数の属性attributeId に対する単純な属性オペランドを構築します。これは、OPC UA 1.05 第9部 5.5.2項に記載されているように、イベントフィルタ内でConditionIdを要求するために使用できます。

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)

名前空間namespaceIndex 内の、ブラウズ名name を持つ直接の子ノードの属性attributeId に対して、単純な属性オペランドを構築します。typeId は、型定義ノードのノード ID です。このオペランドは、型typeId またはそのサブタイプのインスタンスに限定されます。

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

rhs から単純な属性オペランドを構築します。

QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const

browsePath が指しているノードの属性を返します。

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

QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const

typeId を起点とするノードへの相対パスを返します。

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

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

ブラウズパスへの参照を返します。

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

QString QOpcUaSimpleAttributeOperand::indexRange() const

インデックスの範囲を表す文字列を返します。

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

void QOpcUaSimpleAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)

属性 id をattributeId に設定します。

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

void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)

属性が格納されているノードへの参照パスを `browsePath` に設定します。

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

void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)

属性の値のうち、単一の値またはそのサブセットを特定するために使用されるインデックス範囲の文字列を、indexRange に設定します。

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

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

型定義ノードのノードIDをtypeId に設定します。オペランドは、この型またはそのサブタイプのいずれかになります。

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

QString QOpcUaSimpleAttributeOperand::typeId() const

型定義ノードのノードIDを返します。

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

QOpcUaSimpleAttributeOperand::operator QVariant() const

この単純な属性オペランドをQVariant に変換します。

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

この単純な属性オペランドに、rhs の値を設定します。

関連する非メンバー

[noexcept, since 6.7] bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)

lhs の値がrhs と異なる場合、true を返します。

この関数は Qt 6.7 で導入されました。

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

lhs の値がrhs と同一である場合、true を返します。

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