QOpcUaExpandedNodeId Class
El ExpandedNodeId de OPC UA. Más información...
| Encabezado: | #include <QOpcUaExpandedNodeId> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funciones públicas
| QOpcUaExpandedNodeId() | |
| QOpcUaExpandedNodeId(const QString &nodeId) | |
| QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0) | |
| QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs) | |
| QString | namespaceUri() const |
| QString | nodeId() const |
| quint32 | serverIndex() const |
| void | setNamespaceUri(const QString &namespaceUri) |
| void | setNodeId(const QString &nodeId) |
| void | setServerIndex(quint32 serverIndex) |
| operator QVariant() const | |
| QOpcUaExpandedNodeId & | operator=(const QOpcUaExpandedNodeId &rhs) |
| bool | operator==(const QOpcUaExpandedNodeId &rhs) const |
Descripción detallada
Un identificador de nodo ampliado es un identificador de nodo en el que el índice del espacio de nombres puede indicarse como índice o como una URI de cadena. La función QOpcUaClient::namespaceArray() proporciona una lista de los espacios de nombres y sus índices en el servidor.
Documentación de las funciones de miembro
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId()
«Default» crea un identificador de nodo expandido sin parámetros definidos.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)
Crea un identificador de nodo ampliado a partir de la cadena de caracteres del identificador de nodo « nodeId ».
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)
Crea un identificador de nodo ampliado a partir del URI del espacio de nombres namespaceUri, la cadena del identificador de nodo nodeId y el índice del servidor serverIndex.
Véase también setServerIndex.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)
Crea un identificador de nodo ampliado a partir de rhs.
QString QOpcUaExpandedNodeId::namespaceUri() const
Devuelve el URI del espacio de nombres del ID del nodo. Si se especifica este valor, el índice del espacio de nombres en nodeId es 0 y debe ignorarse.
Véase también setNamespaceUri().
QString QOpcUaExpandedNodeId::nodeId() const
Devuelve el identificador del nodo. Si se especifica « namespaceUri », el índice del espacio de nombres no es válido.
Véase también setNodeId().
quint32 QOpcUaExpandedNodeId::serverIndex() const
Devuelve el índice del servidor que contiene el nodo. Este índice se corresponde con una entrada de la tabla de servidores de dicho servidor. El índice del servidor local es siempre 0. Todos los servidores remotos tienen índices superiores a 0.
Véase también setServerIndex().
void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)
Establece el URI del espacio de nombres en namespaceUri.
Véase también namespaceUri().
void QOpcUaExpandedNodeId::setNodeId(const QString &nodeId)
Establece el identificador del nodo en nodeId.
Véase también nodeId().
void QOpcUaExpandedNodeId::setServerIndex(quint32 serverIndex)
Establece el índice del servidor en serverIndex. El índice del servidor local es siempre 0. Todos los servidores remotos tienen índices superiores a 0.
Véase también serverIndex().
QOpcUaExpandedNodeId::operator QVariant() const
Convierte este identificador de nodo expandido en QVariant.
QOpcUaExpandedNodeId &QOpcUaExpandedNodeId::operator=(const QOpcUaExpandedNodeId &rhs)
Establece los valores de rhs en este ID de nodo expandido.
bool QOpcUaExpandedNodeId::operator==(const QOpcUaExpandedNodeId &rhs) const
Devuelve ` true ` si este identificador de nodo expandido 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.