Auf dieser Seite

QOpcUaSimpleAttributeOperand Class

Der OPC UA-Typ „SimpleAttributeOperand“. Mehr dazu...

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

Öffentliche Funktionen

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)

Ausführliche Beschreibung

Der SimpleAttributeOperand ist in OPC UA 1.05 Teil 4, 7.7.4.5, definiert. Er wird verwendet, wenn ein Knotenattribut als Operand benötigt wird.

Der folgende einfache Attributoperand stellt beispielsweise den Wert des Felds „Severity“ des Basisereignistyps dar:

Dokumentation der Mitgliedsfunktionen

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

„Default“ erstellt einen einfachen Attributoperanden, für den keine Parameter festgelegt sind.

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

Erstellt einen einfachen Attributoperanden für das Attribut „ attributeId “ eines Objekts oder einer Variablen vom Typ „ typeId “. Dieser kann verwendet werden, um die „ConditionId“ in einem Ereignisfilter abzufragen, wie in OPC UA 1.05, Teil 9, Abschnitt 5.5.2 beschrieben.

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

Erstellt einen einfachen Attributoperanden für die Attribut attributeId des direkten Kindes mit dem Browse-Namen name im Namensraum namespaceIndex. typeId ist die Knoten-ID eines Typdefinitionsknotens. Der Operand ist auf Instanzen des Typs typeId oder eines Untertyps beschränkt.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Erstellt einen einfachen Attributoperanden aus „ rhs “.

QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const

Gibt das Attribut des Knotens zurück, auf den „ browsePath “ verweist.

Siehe auch setAttributeId().

QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const

Gibt den relativen Pfad zu einem Knoten ausgehend von typeId zurück.

Siehe auch setBrowsePath().

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

Gibt eine Referenz auf den Navigationspfad zurück.

Siehe auch „ browsePath()“.

QString QOpcUaSimpleAttributeOperand::indexRange() const

Gibt die Zeichenfolge des Indexbereichs zurück.

Siehe auch ` setIndexRange()`.

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

Setzt das Attribut „id“ auf „ attributeId “.

Siehe auch attributeId().

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

Setzt den Suchpfad zu dem Knoten, der das Attribut enthält, auf browsePath.

Siehe auch browsePath().

void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)

Setzt die Zeichenfolge für den Indexbereich, die zur Identifizierung eines einzelnen Werts oder einer Teilmenge des Attributwerts verwendet wird, auf „ indexRange “.

Siehe auch ` indexRange()`.

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

Setzt die Knoten-ID des Typpdefinitionsknotens auf „ typeId “. Der Operand ist vom Typ oder einem seiner Untertypen.

Siehe auch typeId().

QString QOpcUaSimpleAttributeOperand::typeId() const

Gibt die Knoten-ID eines Typdefinitionsknotens zurück.

Siehe auch ` setTypeId()`.

QOpcUaSimpleAttributeOperand::operator QVariant() const

Wandelt diesen einfachen Attributoperanden in „ QVariant “ um.

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

Legt die Werte aus „ rhs “ in diesem einfachen Attributoperanden fest.

Verwandte Nicht-Mitglieder

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

Gibt „ true “ zurück, wenn „ lhs “ einen anderen Wert als „ rhs “ hat.

Diese Funktion wurde in Qt 6.7 eingeführt.

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

Gibt „ true “ zurück, wenn „ lhs “ denselben Wert wie „ rhs “ hat.

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