Auf dieser Seite

QOpcUaRelativePathElement Class

Das OPC UA-Element „RelativePathElement“. Mehr dazu...

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

Öffentliche Funktionen

QOpcUaRelativePathElement()
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
bool includeSubtypes() const
bool isInverse() const
QString referenceTypeId() const
void setIncludeSubtypes(bool includeSubtypes)
void setIsInverse(bool isInverse)
void setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
void setReferenceTypeId(const QString &referenceTypeId)
void setTargetName(const QOpcUaQualifiedName &targetName)
QOpcUaQualifiedName targetName() const
(since 6.7) operator QVariant() const
QOpcUaRelativePathElement &operator=(const QOpcUaRelativePathElement &rhs)
(since 6.7) bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Detaillierte Beschreibung

QOpcUaRelativePathElement definiert ein Element eines relativen Pfads auf einem OPC-UA-Server. Dies wird für die Auflösung von Browse-Pfaden zu Knoten-IDs in QOpcUaNode::resolveBrowsePath() benötigt.

Dokumentation der Mitgliedsfunktionen

QOpcUaRelativePathElement::QOpcUaRelativePathElement()

Erstellt ein Element für einen relativen Pfad, bei dem beide Flags auf „ false “ gesetzt sind.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)

Erstellt ein Element für einen relativen Pfad mit den Werten „ targetName “, „ target “, „ QOpcUa::ReferenceTypeId “ und „ refType “, wobei beide Flags auf „ false “ gesetzt sind.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)

Erstellt ein Element für einen relativen Pfad mit „ targetName “ target, der Knoten-ID des Referenztyps refType und beiden Flags, die auf „ false “ gesetzt sind.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)

Erstellt ein Element für einen relativen Pfad aus rhs.

bool QOpcUaRelativePathElement::includeSubtypes() const

Gibt den Wert des Flags „includeSubtypes“ zurück.

Siehe auch „ setIncludeSubtypes()“.

bool QOpcUaRelativePathElement::isInverse() const

Gibt den Wert des Flags „isInverse“ zurück.

Siehe auch ` setIsInverse()`.

QString QOpcUaRelativePathElement::referenceTypeId() const

Gibt die Typ-ID der Referenz zurück, die diesen Knoten mit dem vorherigen Knoten verbindet.

Siehe auch „ setReferenceTypeId()“.

void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)

Setzt das Flag „ includeSubtypes “ auf „ includeSubtypes “. Wenn das Flag auf „ true “ gesetzt ist, verfolgt die Suche auch Referenzen mit Untertypen von „ referenceTypeId “ ().

Siehe auch „ includeSubtypes“ ().

void QOpcUaRelativePathElement::setIsInverse(bool isInverse)

Setzt das Flag „ isInverse “ auf „ isInverse “. Wenn das Flag auf „ true “ gesetzt ist, erfolgt die Suche anhand der umgekehrten Referenz.

Siehe auch „ isInverse()“.

void QOpcUaRelativePathElement::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)

Setzt die Referenztyp-ID auf „ referenceTypeId “.

Siehe auch referenceTypeId().

void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Setzt die Referenztyp-ID auf „ referenceTypeId “.

void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)

Legt den Zielnamen auf „ targetName “ fest, zum Beispiel „ QOpcUaQualifiedName “ (0, „DataTypes“).

Siehe auch targetName().

QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const

Gibt den qualifizierten Namen des Ziels der Referenz zurück.

Siehe auch setTargetName().

[since 6.7] QOpcUaRelativePathElement::operator QVariant() const

Gibt ein ` QVariant ` zurück, das dieses Element des relativen Pfads enthält.

Diese Funktion wurde in Qt 6.7 eingeführt.

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

Legt die Werte von „ rhs “ in diesem Element mit relativem Pfad fest.

Verwandte Nicht-Mitglieder

[noexcept, since 6.7] bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &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 QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &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.