QOpcUaSimpleAttributeOperand Class
OPC UASimpleAttributeOperand タイプ。詳細...
ヘッダー | #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 |
QVariant | 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 part 4の7.7.4.5で規定されている。これは、オペランドとしてノード属性が必要な場合に使用される。
例えば、以下の単純な属性オペランドは、基本イベントタイプの "Severity "フィールドの値を表します:
QOpcUaSimpleAttributeOperand("Severity");
メンバ関数ドキュメント
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()
Default は、パラメータを設定しない単純な属性オペランドを構築します。
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
typeId 型のオブジェクトまたは変数の属性attributeId のための単純な属性オペランドを構築する。これは、OPC UA 1.05 part 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()も参照してください 。
QVariant 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
を返す。
© 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.