QOpcUaHistoryData Class
Diese Klasse speichert historische Datenwerte von einem Knoten. Mehr...
Kopfzeile: | #include <QOpcUaHistoryData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
Öffentliche Funktionen
QOpcUaHistoryData() | |
QOpcUaHistoryData(const QString &nodeId) | |
QOpcUaHistoryData(const QOpcUaHistoryData &other) | |
~QOpcUaHistoryData() | |
void | addValue(const QOpcUaDataValue &value) |
int | count() const |
QString | nodeId() const |
QList<QOpcUaDataValue> | result() const |
void | setNodeId(const QString &nodeId) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaHistoryData &other) |
QOpcUaHistoryData & | operator=(const QOpcUaHistoryData &other) |
Detaillierte Beschreibung
Wenn eine Anfrage zum Lesen von Verlaufsdaten bearbeitet wird, werden Instanzen dieser Klasse verwendet, um Informationen darüber zu speichern, welcher Knoten gelesen wurde, seine Werte und den Statuscode. Das Beendigungssignal einer Anfrage zum Lesen von Verlaufsdaten gibt eine Liste von QOpcUaHistoryData-Objekten zurück, die geparst werden können, um die Ergebnisse der Anfrage zu überprüfen.
Dokumentation der Mitgliedsfunktionen
QOpcUaHistoryData::QOpcUaHistoryData()
Konstruiert ein ungültiges Historiendatenelement.
[explicit]
QOpcUaHistoryData::QOpcUaHistoryData(const QString &nodeId)
Konstruiert ein Geschichtsdatenelement und speichert den Knoten, dem es entspricht.
QOpcUaHistoryData::QOpcUaHistoryData(const QOpcUaHistoryData &other)
Konstruiert ein Geschichtsdatenelement aus other.
[noexcept]
QOpcUaHistoryData::~QOpcUaHistoryData()
Zerstört das Datenelement der Historie.
void QOpcUaHistoryData::addValue(const QOpcUaDataValue &value)
Fügt ein Datenwertobjekt hinzu, das durch value angegeben wird.
int QOpcUaHistoryData::count() const
Gibt die Anzahl der verfügbaren Datenwertobjekte zurück.
QString QOpcUaHistoryData::nodeId() const
Gibt die nodeId des Knotens zurück, dessen Daten gespeichert wurden.
Siehe auch setNodeId().
QList<QOpcUaDataValue> QOpcUaHistoryData::result() const
Gibt die Liste der Datenwertobjekte zurück, die die Ergebnisse der Anfrage zum Lesen der Historie enthalten.
void QOpcUaHistoryData::setNodeId(const QString &nodeId)
Setzt die nodeId auf nodeId.
Siehe auch nodeId().
void QOpcUaHistoryData::setStatusCode(QOpcUa::UaStatusCode statusCode)
Setzt den Statuscode auf statusCode.
Siehe auch statusCode().
QOpcUa::UaStatusCode QOpcUaHistoryData::statusCode() const
Gibt den Statuscode zurück, der angibt, ob beim Abrufen der Verlaufsdaten ein Fehler aufgetreten ist.
Siehe auch setStatusCode().
[noexcept]
void QOpcUaHistoryData::swap(QOpcUaHistoryData &other)
Tauscht diese Datenwertinstanz mit other aus. Diese Funktion ist sehr schnell und schlägt nie fehl.
QOpcUaHistoryData &QOpcUaHistoryData::operator=(const QOpcUaHistoryData &other)
Legt die Werte von other in diesem Verlaufsdatenelement fest.
© 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.