En esta página

QOpcUaRelativePathElement Class

Elemento RelativePathElement de OPC UA. Más...

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

Funciones públicas

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)

Descripción Detallada

QOpcUaRelativePathElement define un elemento de una ruta relativa en un servidor OPC UA. Es necesario para la resolución de rutas de navegación a ids de nodos en QOpcUaNode::resolveBrowsePath().

Documentación de la función de miembro

QOpcUaRelativePathElement::QOpcUaRelativePathElement()

Construye un elemento de ruta relativa con ambas banderas establecidas en false.

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

Construye un elemento de ruta relativa con targetName target , QOpcUa::ReferenceTypeId refType y ambas banderas establecidas en false.

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

Construye un elemento de ruta relativa con targetName target , id de nodo de tipo de referencia refType y ambas banderas establecidas en false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)

Construye un elemento de ruta relativa a partir de rhs.

bool QOpcUaRelativePathElement::includeSubtypes() const

Devuelve el valor de la bandera includeSubtypes.

Véase también setIncludeSubtypes().

bool QOpcUaRelativePathElement::isInverse() const

Devuelve el valor de la bandera isInverse.

Véase también setIsInverse().

QString QOpcUaRelativePathElement::referenceTypeId() const

Devuelve el id de tipo de la referencia que conecta este nodo con el nodo anterior.

Véase también setReferenceTypeId().

void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)

Establece el indicador includeSubtypes en includeSubtypes. Si el indicador es true, la búsqueda también sigue referencias con subtipos de referenceTypeId().

Véase también includeSubtypes().

void QOpcUaRelativePathElement::setIsInverse(bool isInverse)

Establece el indicador isInverse en isInverse. Si el indicador es true, la búsqueda sigue la referencia inversa.

Véase también isInverse().

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

Establece el id del tipo de referencia en referenceTypeId.

Véase también referenceTypeId().

void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Establece el id del tipo de referencia en referenceTypeId.

void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)

Establece el nombre de destino en targetName, por ejemplo QOpcUaQualifiedName(0, "DataTypes").

Véase también targetName().

QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const

Devuelve el nombre cualificado del destino de la referencia.

Véase también setTargetName().

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

Devuelve un QVariant que contiene este elemento de ruta relativa.

Esta función se introdujo en Qt 6.7.

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

Establece los valores de rhs en este elemento de ruta relativa.

No miembros relacionados

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

Devuelve true si lhs tiene un valor diferente de rhs.

Esta función se introdujo en Qt 6.7.

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

Devuelve true si lhs tiene el mismo valor 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.