Auf dieser Seite

QOpcUaAttributeOperand Class

Der OPC-UA-Typ „AttributeOperand“. Mehr...

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

Öffentliche Funktionen

QOpcUaAttributeOperand()
QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)
QString alias() const
QOpcUa::NodeAttribute attributeId() const
QList<QOpcUaRelativePathElement> browsePath() const
QList<QOpcUaRelativePathElement> &browsePathRef()
QString indexRange() const
QString nodeId() const
void setAlias(const QString &alias)
void setAttributeId(QOpcUa::NodeAttribute attributeId)
void setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
operator QVariant() const
QOpcUaAttributeOperand &operator=(const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Ausführliche Beschreibung

Der AttributeOperand ist in OPC UA 1.05 Teil 4, 7.7.4.4 definiert. Er hat denselben Zweck wie „ QOpcUaSimpleAttributeOperand “, bietet jedoch mehr Konfigurationsmöglichkeiten.

Dokumentation zur Mitgliedsfunktion

QOpcUaAttributeOperand::QOpcUaAttributeOperand()

„default“ konstruiert einen Attributoperanden, für den keine Parameter festgelegt sind.

QOpcUaAttributeOperand::QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)

Erstellt einen Attributoperanden aus „ rhs “.

QString QOpcUaAttributeOperand::alias() const

Gibt den Alias für diesen QAttributeOperand zurück.

Siehe auch „ setAlias()“.

QOpcUa::NodeAttribute QOpcUaAttributeOperand::attributeId() const

Gibt die Attribut-ID für ein Attribut des Knotens zurück, auf den browsePath verweist.

Siehe auch setAttributeId().

QList<QOpcUaRelativePathElement> QOpcUaAttributeOperand::browsePath() const

Gibt den Browse-Pfad zurück.

Siehe auch ` setBrowsePath()`.

QList<QOpcUaRelativePathElement> &QOpcUaAttributeOperand::browsePathRef()

Gibt eine Referenz auf den Navigationspfad zurück.

Siehe auch „ browsePath()“.

QString QOpcUaAttributeOperand::indexRange() const

Gibt die Zeichenkette des Indexbereichs zurück.

Siehe auch ` setIndexRange()`.

QString QOpcUaAttributeOperand::nodeId() const

Gibt die Knoten-ID des Knotens „Typdefinition“ zurück.

Siehe auch ` setNodeId()`.

void QOpcUaAttributeOperand::setAlias(const QString &alias)

Legt den Alias auf „ alias “ fest. Dadurch kann diese Instanz als Operand für andere Operationen im Filter verwendet werden.

Siehe auch alias().

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

Setzt das Attribut „id“ auf „ attributeId “.

Siehe auch ` attributeId()`.

void QOpcUaAttributeOperand::setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)

Legt den relativen Pfad zu einem Knoten fest, beginnend bei nodeId() bis browsePath.

Siehe auch browsePath().

void QOpcUaAttributeOperand::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 QOpcUaAttributeOperand::setNodeId(const QString &nodeId)

Setzt die Knoten-ID des Typdefinitionsknotens auf „ nodeId “.

Siehe auch nodeId().

QOpcUaAttributeOperand::operator QVariant() const

Konvertiert diesen Attributoperanden in „ QVariant “.

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

Setzt die Werte aus „ rhs “ in diesem Attributoperanden.

Verwandte Nicht-Mitglieder

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

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

Diese Funktion wurde in Qt 6.7 eingeführt.

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

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

Diese Funktion wurde in Qt 6.7 eingeführt.

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