QOpcUaSimpleAttributeOperand Class

Der OPC UA SimpleAttributeOperand Typ. Mehr...

Kopfzeile: #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
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)

Detaillierte Beschreibung

Die SimpleAttributeOperand ist in OPC UA 1.05 Teil 4, 7.7.4.5 spezifiziert. Es wird verwendet, wenn ein Knotenattribut als Operand erforderlich ist.

Der folgende einfache Attribut-Operand stellt zum Beispiel den Wert des Feldes "Severity" des Basis-Ereignistyps dar:

Member Function Dokumentation

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

Default konstruiert einen einfachen Attributoperanden ohne Parameter.

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

Konstruiert einen einfachen Attributoperanden für das Attribut attributeId eines Objekts oder einer Variablen vom Typ typeId. Dies kann zur Abfrage der ConditionId in einem Ereignisfilter verwendet werden, wie in OPC UA 1.05 Teil 9, 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)

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

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Konstruiert 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 zurück, der mit typeId beginnt.

Siehe auch setBrowsePath().

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

Gibt einen Verweis auf den Suchpfad zurück.

Siehe auch browsePath().

QString QOpcUaSimpleAttributeOperand::indexRange() const

Gibt die Zeichenkette 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 Wertes oder einer Teilmenge des Attributwertes verwendet wird, auf indexRange.

Siehe auch indexRange().

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

Setzt die node id des Typdefinitionsknotens auf typeId. Der Operand ist vom Typ oder einem seiner Subtypen.

Siehe auch typeId().

QString QOpcUaSimpleAttributeOperand::typeId() const

Gibt die Knoten-ID eines Typdefinitionsknotens zurück.

Siehe auch setTypeId().

QVariant QOpcUaSimpleAttributeOperand::operator QVariant() const

Wandelt diesen einfachen Attributoperanden in QVariant um.

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

Legt die Werte von 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.

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