Sur cette page

QOpcUaRelativePathElement Class

L'élément RelativePathElement d'OPC UA. En savoir plus...

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

Fonctions publiques

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)

Description détaillée

QOpcUaRelativePathElement définit un élément d'un chemin relatif sur un serveur OPC UA. Cela est nécessaire pour la résolution des chemins de navigation vers les identifiants de nœuds dans la fonction ` QOpcUaNode::resolveBrowsePath()`.

Documentation des fonctions membres

QOpcUaRelativePathElement::QOpcUaRelativePathElement()

Crée un élément de chemin relatif dont les deux indicateurs sont définis sur « false ».

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

Crée un élément de chemin relatif avec les valeurs suivantes : targetName, target, QOpcUa::ReferenceTypeId, refType, ainsi que les deux indicateurs définis sur false.

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

Crée un élément de chemin relatif avec l'targetName target , l'identifiant de nœud de type référence refType et les deux indicateurs définis sur false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)

Crée un élément de chemin relatif à partir de rhs.

bool QOpcUaRelativePathElement::includeSubtypes() const

Renvoie la valeur de l'indicateur `includeSubtypes`.

Voir aussi ` setIncludeSubtypes()`.

bool QOpcUaRelativePathElement::isInverse() const

Renvoie la valeur de l'indicateur « isInverse ».

Voir aussi setIsInverse().

QString QOpcUaRelativePathElement::referenceTypeId() const

Renvoie l'identifiant de type de la référence reliant ce nœud au nœud précédent.

Voir également setReferenceTypeId().

void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)

Définit l'indicateur « includeSubtypes » sur « includeSubtypes ». Si l'indicateur est défini sur « true », la recherche suit également les références dont les sous-types sont de type « referenceTypeId » ().

Voir également includeSubtypes().

void QOpcUaRelativePathElement::setIsInverse(bool isInverse)

Définit l'indicateur « isInverse » sur « isInverse ». Si l'indicateur est « true », la recherche suit la référence inversée.

Voir également isInverse().

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

Définit l'identifiant du type de référence sur referenceTypeId.

Voir également referenceTypeId().

void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Définit l'identifiant du type de référence sur « referenceTypeId ».

void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)

Définit le nom de la cible sur « targetName », par exemple QOpcUaQualifiedName(0, « DataTypes »).

Voir également targetName().

QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const

Renvoie le nom qualifié de la cible de la référence.

Voir aussi setTargetName().

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

Renvoie un objet ` QVariant ` contenant cet élément de chemin relatif.

Cette fonction a été introduite dans Qt 6.7.

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

Définit les valeurs des attributs « rhs » dans cet élément de chemin relatif.

Éléments non membres associés

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

Renvoie « true » si « lhs » a une valeur différente de « rhs ».

Cette fonction a été introduite dans Qt 6.7.

[noexcept] bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Renvoie « true » si « lhs » a la même valeur que « rhs ».

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