QOpcUaExpandedNodeId Class
The OPC UA ExpandedNodeId. More...
Header: | #include <QOpcUaExpandedNodeId> |
qmake: | QT += opcua |
Public Functions
QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0) | |
QOpcUaExpandedNodeId(const QString &nodeId) | |
QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs) | |
QOpcUaExpandedNodeId & | operator=(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) |
QVariant | operator QVariant() const |
bool | operator==(const QOpcUaExpandedNodeId &rhs) const |
Detailed Description
An expanded node id is a node id where the namespace index can be given as index or as a string URI. A list of namespaces and their indices on the server is provided by QOpcUaClient::namespaceArray().
Member Function Documentation
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)
Constructs an expanded node id from namespace URI namespaceUri, node id string nodeId and server index serverIndex.
See also setServerIndex.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)
Constructs an expanded node id from node id string nodeId.
QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)
Constructs an expanded node id from rhs.
QOpcUaExpandedNodeId &QOpcUaExpandedNodeId::operator=(const QOpcUaExpandedNodeId &rhs)
Sets the values from rhs in this expanded node id.
QString QOpcUaExpandedNodeId::namespaceUri() const
Returns the namespace URI of the node id. If this value is specified, the namespace index in nodeId is 0 and must be ignored.
See also setNamespaceUri().
QString QOpcUaExpandedNodeId::nodeId() const
Returns the node id. If namespaceUri is specified, the namespace index is invalid.
See also setNodeId().
quint32 QOpcUaExpandedNodeId::serverIndex() const
Returns the index of the server containing the node. This index maps to an entry in the server's server table. The index of the local server is always 0
. All remote servers have indexes greater than 0
.
See also setServerIndex().
void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)
Sets the namespace URI to namespaceUri.
See also namespaceUri().
void QOpcUaExpandedNodeId::setNodeId(const QString &nodeId)
Sets the node id to nodeId.
See also nodeId().
void QOpcUaExpandedNodeId::setServerIndex(quint32 serverIndex)
Sets the server index to serverIndex. The index of the local server is always 0
. All remote servers have indexes greater than 0
.
See also serverIndex().
QVariant QOpcUaExpandedNodeId::operator QVariant() const
Converts this expanded node id to QVariant.
bool QOpcUaExpandedNodeId::operator==(const QOpcUaExpandedNodeId &rhs) const
Returns true
if this expanded node id has the same value as rhs.
© 2024 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.