QOpcUaExpandedNodeId Class

Die OPC UA ExpandedNodeId. Mehr...

Kopfzeile: #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)
QVariant operator QVariant() const
QOpcUaExpandedNodeId &operator=(const QOpcUaExpandedNodeId &rhs)
bool operator==(const QOpcUaExpandedNodeId &rhs) const

Detaillierte Beschreibung

Eine erweiterte Knoten-ID ist eine Knoten-ID, bei der der Namespace-Index 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 der Mitgliedsfunktionen

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId()

Standard konstruiert eine erweiterte Knoten-ID ohne Parameter.

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QString &nodeId)

Konstruiert eine erweiterte Knoten-ID aus dem Knoten-ID-String nodeId.

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

Konstruiert eine erweiterte Knoten-ID aus Namespace URI namespaceUri, Knoten-ID-String nodeId und Server-Index serverIndex.

Siehe auch setServerIndex.

QOpcUaExpandedNodeId::QOpcUaExpandedNodeId(const QOpcUaExpandedNodeId &rhs)

Konstruiert eine erweiterte Knoten-ID aus rhs.

QString QOpcUaExpandedNodeId::namespaceUri() const

Gibt den Namespace-URI der Knoten-ID zurück. Wenn dieser Wert angegeben wird, ist der Namespace-Index in nodeId 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 entspricht einem Eintrag in der Servertabelle des Servers. Der Index des lokalen Servers ist immer 0. Alle entfernten Server haben Indizes, die größer als 0 sind.

Siehe auch setServerIndex().

void QOpcUaExpandedNodeId::setNamespaceUri(const QString &namespaceUri)

Setzt den 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 ist immer 0. Alle entfernten Server haben Indizes, die größer als 0 sind.

Siehe auch serverIndex().

QVariant QOpcUaExpandedNodeId::operator QVariant() const

Konvertiert diese erweiterte Knoten-ID in QVariant.

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

Legt die Werte von rhs in dieser erweiterten Knoten-ID fest.

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

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

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