QOpcUaReadItem Class
Diese Klasse speichert die Optionen für einen Lesevorgang. Mehr...
| Header: | #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) |
Zugehörige Nicht-Mitglieder
| bool | operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs) |
| bool | operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs) |
Detaillierte Beschreibung
Ein Lesevorgang auf einem OPC-UA-Server gibt den gesamten Wert oder einen bestimmten Indexbereich des Werts eines Attributs eines Knotens auf dem Server zurück. Diese Klasse enthält die notwendigen Informationen, damit das Backend eine Leseanfrage an den Server stellen kann.
Ein oder mehrere Objekte dieser Klasse bilden die Anfrage einer QOpcUaClient::readNodeAttributes()-Operation.
Siehe auch „ QOpcUaClient::readNodeAttributes()“ und „ QOpcUaReadResult “.
Dokumentation zu den Mitgliedsfunktionen
QOpcUaReadItem::QOpcUaReadItem()
„default“ erstellt ein Leseelement, für das keine Parameter festgelegt sind.
QOpcUaReadItem::QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())
Erstellt ein Leseelement für den Indexbereich indexRange des Attributs attr des Knotens nodeId.
QOpcUaReadItem::QOpcUaReadItem(const QOpcUaReadItem &other)
Erstellt ein Leseobjekt aus „ other “.
QOpcUa::NodeAttribute QOpcUaReadItem::attribute() const
Gibt die ID des Knotenattributs 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)
Legt den Indexbereich auf „ indexRange “ fest.
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 aus „ rhs “ in diesem Leseelement 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 gelten als ungleich, wenn ihre Werte für „ nodeId “, „ attribute “ oder „ indexRange “ nicht übereinstimmen.
[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 gelten als gleich, wenn ihre Werte für „ nodeId “, „ attribute “ und „ indexRange “ identisch sind.
© 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.