Auf dieser Seite

QOpcUaExpandedNodeId Class

Die OPC UA „ExpandedNodeId“. Mehr dazu...

Überschrift: #include <QOpcUaExpandedNodeId>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Öffentliche Funktionen

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

Ausführliche Beschreibung

Eine erweiterte Knoten-ID ist eine Knoten-ID, bei der der Namespace-Index entweder als Index oder als String-URI angegeben werden kann. Eine Liste der Namespaces und ihrer Indizes auf dem Server wird von QOpcUaClient::namespaceArray() bereitgestellt.

Dokumentation zu den Mitgliedsfunktionen

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId()

„Default“ erzeugt eine erweiterte Knoten-ID, ohne dass Parameter festgelegt werden.

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)

Erstellt eine erweiterte Knoten-ID aus der Knoten-ID-Zeichenkette „ nodeId “.

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &namespaceUri, const QString &nodeId, quint32 serverIndex = 0)

Erstellt eine erweiterte Knoten-ID aus der Namespace-URI namespaceUri, der Knoten-ID-Zeichenkette nodeId und dem Server-Index serverIndex.

Siehe auch setServerIndex.

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)

Erstellt eine erweiterte Knoten-ID aus „ rhs “.

QString QOpcUaExpandedNodeId::namespaceUri() const

Gibt die Namespace-URI der Knoten-ID zurück. Wenn dieser Wert angegeben wird, ist der Namespace-Index in nodeId gleich 0 und muss ignoriert werden.

Siehe auch setNamespaceUri().

QString QOpcUaExpandedNodeId::nodeId() const

Gibt die Knoten-ID zurück. Wenn „ namespaceUri “ angegeben ist, ist der Namespace-Index ungültig.

Siehe auch setNodeId().

quint32 QOpcUaExpandedNodeId::serverIndex() const

Gibt den Index des Servers zurück, der den Knoten enthält. Dieser Index verweist auf einen Eintrag in der Servertabelle des Servers. Der Index des lokalen Servers lautet immer 0. Alle Remote-Server haben Indizes, die größer sind als 0.

Siehe auch setServerIndex().

void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)

Setzt die Namespace-URI auf namespaceUri.

Siehe auch namespaceUri().

void QOpcUaExpandedNodeId::setNodeId(const QString &nodeId)

Setzt die Knoten-ID auf „ nodeId “.

Siehe auch nodeId().

void QOpcUaExpandedNodeId::setServerIndex(quint32 serverIndex)

Setzt den Serverindex auf serverIndex. Der Index des lokalen Servers lautet immer 0. Alle Remote-Server haben Indizes, die größer sind als 0.

Siehe auch serverIndex().

QOpcUaExpandedNodeId::operator QVariant() const

Wandelt diese ID des erweiterten Knotens in „ QVariant “ um.

QOpcUaExpandedNodeId &QOpcUaExpandedNodeId::operator=(const QOpcUaExpandedNodeId &rhs)

Legt die Werte aus „ rhs “ für diese erweiterte Knoten-ID fest.

bool QOpcUaExpandedNodeId::operator==(const QOpcUaExpandedNodeId &rhs) const

Gibt „ true “ zurück, wenn diese erweiterte Knoten-ID denselben Wert wie „ rhs “ hat.

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