QOpcUaExpandedNodeId Class
L'ExpandedNodeId di OPC UA. Per saperne di più...
| Intestazione: | #include <QOpcUaExpandedNodeId> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funzioni pubbliche
| 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 |
Descrizione dettagliata
Un ID nodo esteso è un ID nodo in cui l'indice dello spazio dei nomi può essere specificato come indice o come URI stringa. Un elenco degli spazi dei nomi e dei relativi indici sul server è fornito dalla funzione QOpcUaClient::namespaceArray().
Documentazione delle funzioni membro
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId()
Default crea un ID nodo espanso senza parametri specificati.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)
Crea un ID nodo esteso a partire dalla stringa dell’ID nodo nodeId.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)
Crea un ID nodo espanso a partire dall'URI dello spazio dei nomi namespaceUri, dalla stringa dell'ID nodo nodeId e dall'indice del server serverIndex.
Vedi anche setServerIndex.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)
Crea un ID nodo esteso a partire da rhs.
QString QOpcUaExpandedNodeId::namespaceUri() const
Restituisce l'URI dello spazio dei nomi dell'ID del nodo. Se viene specificato questo valore, l'indice dello spazio dei nomi in nodeId è 0 e deve essere ignorato.
Vedi anche setNamespaceUri().
QString QOpcUaExpandedNodeId::nodeId() const
Restituisce l'ID del nodo. Se viene specificato namespaceUri, l'indice dello spazio dei nomi non è valido.
Vedi anche setNodeId().
quint32 QOpcUaExpandedNodeId::serverIndex() const
Restituisce l'indice del server contenente il nodo. Tale indice corrisponde a una voce nella tabella dei server del server stesso. L'indice del server locale è sempre 0. Tutti i server remoti hanno indici superiori a 0.
Vedi anche setServerIndex().
void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)
Imposta l'URI dello spazio dei nomi su namespaceUri.
Vedi anche namespaceUri().
void QOpcUaExpandedNodeId::setNodeId(const QString &nodeId)
Imposta l'ID del nodo su nodeId.
Vedi anche nodeId().
void QOpcUaExpandedNodeId::setServerIndex(quint32 serverIndex)
Imposta l'indice del server su serverIndex. L'indice del server locale è sempre 0. Tutti i server remoti hanno indici superiori a 0.
Vedi anche serverIndex().
QOpcUaExpandedNodeId::operator QVariant() const
Converte l'ID di questo nodo espanso in QVariant.
QOpcUaExpandedNodeId &QOpcUaExpandedNodeId::operator=(const QOpcUaExpandedNodeId &rhs)
Imposta i valori provenienti da rhs in questo ID nodo espanso.
bool QOpcUaExpandedNodeId::operator==(const QOpcUaExpandedNodeId &rhs) const
Restituisce " true " se l'ID del nodo espanso ha lo stesso valore di " 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.