QExpandedNodeId Class


The OPC UA ExpandedNodeId. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QExpandedNodeId(const QOpcUa::QExpandedNodeId &rhs)
QExpandedNodeId(const QString &nodeId)
QExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)
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
QOpcUa::QExpandedNodeId &operator=(const QOpcUa::QExpandedNodeId &rhs)
bool operator==(const QOpcUa::QExpandedNodeId &rhs) const

Detailed Description

The OPC UA ExpandedNodeId.

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


Default constructs an instance of QExpandedNodeId.

QExpandedNodeId::QExpandedNodeId(const QOpcUa::QExpandedNodeId &rhs)

Constructs an expanded node id from rhs.

QExpandedNodeId::QExpandedNodeId(const QString &nodeId)

Constructs an expanded node id from node id string nodeId.

QExpandedNodeId::QExpandedNodeId(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.


Destroys the instance of QExpandedNodeId.

QString QExpandedNodeId::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 QExpandedNodeId::nodeId() const

Returns the node id. If namespaceUri is specified, the namespace index is invalid.

See also setNodeId().

quint32 QExpandedNodeId::serverIndex() const

Returns the index of the server containing the node. This index maps to an entry in the server's server table.

See also setServerIndex().

void QExpandedNodeId::setNamespaceUri(const QString &namespaceUri)

Sets the namespace URI to namespaceUri.

See also namespaceUri().

void QExpandedNodeId::setNodeId(const QString &nodeId)

Sets the node id to nodeId.

See also nodeId().

void QExpandedNodeId::setServerIndex(quint32 serverIndex)

Sets the server index to serverIndex.

See also serverIndex().

QVariant QExpandedNodeId::operator QVariant() const

Converts this expanded node id to QVariant.

QOpcUa::QExpandedNodeId &QExpandedNodeId::operator=(const QOpcUa::QExpandedNodeId &rhs)

Sets the values from rhs in this expanded node id.

bool QExpandedNodeId::operator==(const QOpcUa::QExpandedNodeId &rhs) const

Returns true if this expanded node id has the same value as rhs.

© 2018 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.