QOpcUaReferenceDescription Class

Enthält Informationen über einen Knoten. Mehr...

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

Öffentliche Funktionen

QOpcUaReferenceDescription()
QOpcUaReferenceDescription(const QOpcUaReferenceDescription &other)
~QOpcUaReferenceDescription()
QOpcUaQualifiedName browseName() const
QOpcUaLocalizedText displayName() const
bool isForwardReference() const
QOpcUa::NodeClass nodeClass() const
QString refTypeId() const
void setBrowseName(const QOpcUaQualifiedName &browseName)
void setDisplayName(const QOpcUaLocalizedText &displayName)
void setIsForwardReference(bool isForwardReference)
void setNodeClass(QOpcUa::NodeClass nodeClass)
void setRefTypeId(const QString &refTypeId)
void setTargetNodeId(const QOpcUaExpandedNodeId &nodeId)
void setTypeDefinition(const QOpcUaExpandedNodeId &typeDefinition)
QOpcUaExpandedNodeId targetNodeId() const
QOpcUaExpandedNodeId typeDefinition() const
QOpcUaReferenceDescription &operator=(const QOpcUaReferenceDescription &other)

Detaillierte Beschreibung

Diese Klasse wird verwendet, um die Ergebnisse eines Aufrufs von QOpcUaNode::browse() oder QOpcUaNode::browseChildren() zurückzugeben.

Sie enthält den Typ und die Richtung der Referenz, die verwendet wird, um den Knoten mit dem Startknoten der Browse-Operation zu verbinden, die Knoten-ID des Typdefinitionsknotens des Ziels und die Werte der folgenden node attributes:

Attribut
NodeId
DurchsuchenName
AnzeigeName
NodeClass

Mitglied Funktion Dokumentation

QOpcUaReferenceDescription::QOpcUaReferenceDescription()

Erzeugt ein leeres QOpcUaReferenceDescription-Objekt

QOpcUaReferenceDescription::QOpcUaReferenceDescription(const QOpcUaReferenceDescription &other)

Erzeugt eine Kopie des QOpcUaReferenceDescription-Objekts other.

[noexcept] QOpcUaReferenceDescription::~QOpcUaReferenceDescription()

Destruktor für QOpcUaReferenceDescription

QOpcUaQualifiedName QOpcUaReferenceDescription::browseName() const

Gibt den Browse-Namen des Knotens zurück.

Siehe auch setBrowseName().

QOpcUaLocalizedText QOpcUaReferenceDescription::displayName() const

Gibt den Anzeigenamen des Knotens zurück.

Siehe auch setDisplayName().

bool QOpcUaReferenceDescription::isForwardReference() const

Gibt true zurück, wenn der Verweis vorwärts gerichtet ist.

Siehe auch setIsForwardReference().

QOpcUa::NodeClass QOpcUaReferenceDescription::nodeClass() const

Gibt die Knotenklasse des Knotens zurück.

Siehe auch setNodeClass().

QString QOpcUaReferenceDescription::refTypeId() const

Gibt die Referenztyp-ID des Knotens zurück.

Siehe auch setRefTypeId().

void QOpcUaReferenceDescription::setBrowseName(const QOpcUaQualifiedName &browseName)

Setzt den Suchnamen des Knotens auf browseName.

Siehe auch browseName().

void QOpcUaReferenceDescription::setDisplayName(const QOpcUaLocalizedText &displayName)

Setzt den Anzeigenamen des Knotens auf displayName.

Siehe auch displayName().

void QOpcUaReferenceDescription::setIsForwardReference(bool isForwardReference)

Legt isForwardReference als isForwardReference Informationen für den Verweis fest.

Siehe auch isForwardReference().

void QOpcUaReferenceDescription::setNodeClass(QOpcUa::NodeClass nodeClass)

Setzt die Knotenklasse des Knotens auf nodeClass.

Siehe auch nodeClass().

void QOpcUaReferenceDescription::setRefTypeId(const QString &refTypeId)

Setzt die Referenztyp-ID des Knotens auf refTypeId.

Siehe auch refTypeId() und QOpcUa::nodeIdFromReferenceType().

void QOpcUaReferenceDescription::setTargetNodeId(const QOpcUaExpandedNodeId &nodeId)

Setzt die Knoten-ID des Knotens auf nodeId.

Siehe auch targetNodeId().

void QOpcUaReferenceDescription::setTypeDefinition(const QOpcUaExpandedNodeId &typeDefinition)

Setzt typeDefinition als id der Typdefinition.

Siehe auch typeDefinition().

QOpcUaExpandedNodeId QOpcUaReferenceDescription::targetNodeId() const

Gibt die Knoten-ID des Knotens zurück.

Siehe auch setTargetNodeId().

QOpcUaExpandedNodeId QOpcUaReferenceDescription::typeDefinition() const

Gibt die Typdefinitions-ID zurück.

Siehe auch setTypeDefinition().

QOpcUaReferenceDescription &QOpcUaReferenceDescription::operator=(const QOpcUaReferenceDescription &other)

Weist diesem Objekt den Wert von other zu.

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