QOpcUaRelativePathElement Class
El elemento RelativePathElement de OPC UA. Más información...
| Encabezado: | #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) |
Elementos no miembros relacionados
(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. Esto es necesario para la resolución de rutas de navegación a identificadores de nodo en QOpcUaNode::resolveBrowsePath().
Documentación de la función miembro
QOpcUaRelativePathElement::QOpcUaRelativePathElement()
Crea un elemento de ruta relativa con ambos indicadores establecidos en « false ».
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
Crea un elemento de ruta relativa con « targetName », « target », « QOpcUa::ReferenceTypeId », « refType » y ambos indicadores establecidos en « false ».
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
Crea un elemento de ruta relativa con targetName target , un identificador de nodo de tipo referencia refType y ambos indicadores establecidos en false.
QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
Crea un elemento de ruta relativa a partir de rhs.
bool QOpcUaRelativePathElement::includeSubtypes() const
Devuelve el valor del indicador «includeSubtypes».
Véase también ` setIncludeSubtypes()`.
bool QOpcUaRelativePathElement::isInverse() const
Devuelve el valor del indicador «isInverse».
Véase también setIsInverse().
QString QOpcUaRelativePathElement::referenceTypeId() const
Devuelve el identificador 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 las 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 identificador del tipo de referencia en « referenceTypeId ».
Véase también referenceTypeId().
void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)
Establece el identificador del tipo de referencia en « referenceTypeId ».
void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)
Establece el nombre del destino como « targetName », por ejemplo, « QOpcUaQualifiedName » (0, «DataTypes»).
Véase también targetName().
QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const
Devuelve el nombre completo del destino de la referencia.
Véase también setTargetName().
[since 6.7] QOpcUaRelativePathElement::operator QVariant() const
Devuelve un objeto ` 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.
Elementos no miembros relacionados
[noexcept, since 6.7] bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
Devuelve « true » si « lhs » tiene un valor diferente al 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.