Sur cette page

QOpcUaReferenceDescription Class

Contient des informations sur un nœud. En savoir plus...

En-tête : #include <QOpcUaReferenceDescription>
CMake : find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake : QT += opcua

Fonctions publiques

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)

Description détaillée

Cette classe sert à renvoyer les résultats d’un appel à ` QOpcUaNode::browse()` ou ` QOpcUaNode::browseChildren()`.

Elle contient le type et la direction de la référence utilisée pour relier le nœud au nœud de départ de l'opération de navigation, l'identifiant du nœud de définition de type de la cible et les valeurs des attributs suivants d'node attributes:

Attribut
NodeId
BrowseName
Nom d'affichage
NodeClass

Documentation sur les fonctions membres

QOpcUaReferenceDescription::QOpcUaReferenceDescription()

Crée un objet `QOpcUaReferenceDescription` vide

QOpcUaReferenceDescription::QOpcUaReferenceDescription(const QOpcUaReferenceDescription &other)

Crée une copie de l'objet `QOpcUaReferenceDescription` other.

[noexcept] QOpcUaReferenceDescription::~QOpcUaReferenceDescription()

Destructeur pour QOpcUaReferenceDescription

QOpcUaQualifiedName QOpcUaReferenceDescription::browseName() const

Renvoie le nom d'affichage du nœud.

Voir aussi setBrowseName().

QOpcUaLocalizedText QOpcUaReferenceDescription::displayName() const

Renvoie le nom d'affichage du nœud.

Voir aussi setDisplayName().

bool QOpcUaReferenceDescription::isForwardReference() const

Renvoie « true » si la référence est de type « forward ».

Voir aussi setIsForwardReference().

QOpcUa::NodeClass QOpcUaReferenceDescription::nodeClass() const

Renvoie la classe du nœud.

Voir aussi setNodeClass().

QString QOpcUaReferenceDescription::refTypeId() const

Renvoie l'identifiant de type référence du nœud.

Voir aussi setRefTypeId().

void QOpcUaReferenceDescription::setBrowseName(const QOpcUaQualifiedName &browseName)

Définit le nom d'accès du nœud sur « browseName ».

Voir aussi browseName().

void QOpcUaReferenceDescription::setDisplayName(const QOpcUaLocalizedText &displayName)

Définit le nom d'affichage du nœud sur displayName.

Voir aussi displayName().

void QOpcUaReferenceDescription::setIsForwardReference(bool isForwardReference)

Définit « isForwardReference » comme information de type « isForwardReference » pour la référence.

Voir également isForwardReference().

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

Définit la classe du nœud sur « nodeClass ».

Voir également nodeClass().

void QOpcUaReferenceDescription::setRefTypeId(const QString &refTypeId)

Définit l'identifiant de type de référence du nœud sur « refTypeId ».

Voir également refTypeId() et QOpcUa::nodeIdFromReferenceType().

void QOpcUaReferenceDescription::setTargetNodeId(const QOpcUaExpandedNodeId &nodeId)

Définit l'identifiant du nœud sur nodeId.

Voir également targetNodeId().

void QOpcUaReferenceDescription::setTypeDefinition(const QOpcUaExpandedNodeId &typeDefinition)

Définit typeDefinition comme identifiant de la définition de type.

Voir aussi typeDefinition().

QOpcUaExpandedNodeId QOpcUaReferenceDescription::targetNodeId() const

Renvoie l'identifiant du nœud.

Voir aussi setTargetNodeId().

QOpcUaExpandedNodeId QOpcUaReferenceDescription::typeDefinition() const

Renvoie l'identifiant de la définition de type.

Voir également setTypeDefinition().

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

Attribue la valeur de ` other ` à cet objet.

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