QOpcUaReadItem Class

Diese Klasse speichert die Optionen für eine Leseoperation. Mehr...

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

Öffentliche Funktionen

QOpcUaReadItem()
QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())
QOpcUaReadItem(const QOpcUaReadItem &other)
QOpcUa::NodeAttribute attribute() const
QString indexRange() const
QString nodeId() const
void setAttribute(QOpcUa::NodeAttribute attribute)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
QOpcUaReadItem &operator=(const QOpcUaReadItem &rhs)
bool operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)
bool operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)

Detaillierte Beschreibung

Eine Leseoperation auf einem OPC UA Server gibt den gesamten Wert oder einen bestimmten Indexbereich des Wertes eines Attributes eines Knotens auf dem Server zurück. Diese Klasse enthält die notwendigen Informationen für das Backend, um eine Leseanfrage an den Server zu stellen.

Ein oder mehrere Objekte dieser Klasse bilden die Anfrage einer QOpcUaClient::readNodeAttributes()-Operation.

Siehe auch QOpcUaClient::readNodeAttributes() und QOpcUaReadResult.

Dokumentation der Mitgliedsfunktionen

QOpcUaReadItem::QOpcUaReadItem()

Standard konstruiert ein Leseelement ohne Parameter.

QOpcUaReadItem::QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())

Konstruiert ein Leseelement für den Indexbereich indexRange des Attributs attr des Knotens nodeId.

QOpcUaReadItem::QOpcUaReadItem(const QOpcUaReadItem &other)

Konstruiert ein Leseelement aus other.

QOpcUa::NodeAttribute QOpcUaReadItem::attribute() const

Gibt das Knotenattribut id zurück.

Siehe auch setAttribute().

QString QOpcUaReadItem::indexRange() const

Gibt den Indexbereich zurück.

Siehe auch setIndexRange().

QString QOpcUaReadItem::nodeId() const

Gibt die Knoten-ID zurück.

Siehe auch setNodeId().

void QOpcUaReadItem::setAttribute(QOpcUa::NodeAttribute attribute)

Setzt das Knotenattribut id auf attribute.

Siehe auch attribute().

void QOpcUaReadItem::setIndexRange(const QString &indexRange)

Setzt den Indexbereich auf indexRange.

Siehe auch indexRange().

void QOpcUaReadItem::setNodeId(const QString &nodeId)

Setzt die Knoten-ID auf nodeId.

Siehe auch nodeId().

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

Legt die Werte von rhs in dieser Leseposition fest.

Verwandte Nicht-Mitglieder

[noexcept] bool operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)

Gibt true zurück, wenn lhs nicht gleich rhs ist; andernfalls wird false zurückgegeben.

Zwei gelesene Elemente werden als nicht gleich angesehen, wenn ihre nodeId, attribute oder indexRange nicht gleich sind.

[noexcept] bool operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)

Gibt true zurück, wenn lhs gleich rhs ist; andernfalls wird false zurückgegeben.

Zwei gelesene Elemente werden als gleich angesehen, wenn ihre nodeId, attribute und indexRange gleich sind.

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