QOpcUaHistoryEvent Class
Diese Klasse speichert historische Ereignisse eines Knotens. Mehr...
| Header: | #include <QOpcUaHistoryEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Seit: | Qt 6.7 |
Öffentliche Funktionen
| QOpcUaHistoryEvent() | |
| QOpcUaHistoryEvent(const QString &nodeId) | |
| QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other) | |
| QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other) | |
| ~QOpcUaHistoryEvent() | |
| void | addEvent(const QVariantList &value) |
| int | count() const |
| QList<QVariantList> | events() const |
| QString | nodeId() const |
| void | setNodeId(const QString &nodeId) |
| void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
| QOpcUa::UaStatusCode | statusCode() const |
| void | swap(QOpcUaHistoryEvent &other) |
| QOpcUaHistoryEvent & | operator=(QOpcUaHistoryEvent &&other) |
| QOpcUaHistoryEvent & | operator=(const QOpcUaHistoryEvent &other) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
| bool | operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
Ausführliche Beschreibung
Bei der Bearbeitung einer Anfrage zum Auslesen von Verlaufsereignissen werden Instanzen dieser Klasse verwendet, um Informationen darüber zu speichern, welcher Knoten gelesen wurde, welche Ereignisse damit verbunden sind und welchen Statuscode es gibt. Das Signal „finished“ einer Antwort auf eine Verlaufsabfrage gibt eine Liste von QOpcUaHistoryEvent-Objekten zurück, die analysiert werden können, um die Ergebnisse der Anfrage zu überprüfen.
Dokumentation der Mitgliedsfunktionen
QOpcUaHistoryEvent::QOpcUaHistoryEvent()
Erstellt einen ungültigen Verlaufseintrag.
[explicit] QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QString &nodeId)
Erstellt einen Eintrag für ein Ereignis im Verlauf und speichert, welchem Knoten dieser entspricht.
QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)
Erstellt einen Eintrag für ein historisches Ereignis aus other.
[constexpr noexcept default] QOpcUaHistoryEvent::QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other)
Erstellt ein neues Ereignisobjekt aus „ other “.
Hinweis: Das Objekt „ other “, aus dem das neue Objekt erstellt wurde, befindet sich in einem teilweise erstellten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
[noexcept] QOpcUaHistoryEvent::~QOpcUaHistoryEvent()
Löscht den Verlaufseintrag.
void QOpcUaHistoryEvent::addEvent(const QVariantList &value)
Fügt eine Liste von Ereignisfeldern hinzu, die unter value angegeben ist.
int QOpcUaHistoryEvent::count() const
Gibt die Anzahl der verfügbaren Ereignisse zurück.
QList<QVariantList> QOpcUaHistoryEvent::events() const
Gibt die Liste der „ QVariantList “-Objekte zurück, die die Ergebnisse der Abfrage des Leseverlaufs enthalten.
QString QOpcUaHistoryEvent::nodeId() const
Gibt die „nodeId“ des Knotens zurück, dessen Ereignisse gespeichert wurden.
Siehe auch ` setNodeId()`.
void QOpcUaHistoryEvent::setNodeId(const QString &nodeId)
Setzt die Eigenschaft „ nodeId “ auf „ nodeId “.
Siehe auch nodeId().
void QOpcUaHistoryEvent::setStatusCode(QOpcUa::UaStatusCode statusCode)
Setzt den Statuscode auf „ statusCode “.
Siehe auch statusCode().
QOpcUa::UaStatusCode QOpcUaHistoryEvent::statusCode() const
Gibt den Statuscode zurück, der angibt, ob beim Abrufen der Verlaufsereignisse ein Fehler aufgetreten ist.
Siehe auch „ setStatusCode()“.
[noexcept] void QOpcUaHistoryEvent::swap(QOpcUaHistoryEvent &other)
Tauscht das Verlaufsereignisobjekt „ other “ gegen dieses Verlaufsereignisobjekt aus. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
[noexcept] QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(QOpcUaHistoryEvent &&other)
Weist „ other “ dieser Instanz von „ QOpcUaHistoryEvent “ zu.
Hinweis: Das Objekt „ other “, aus dem die Zuweisung erfolgt, wird in einen teilweise initialisierten Zustand versetzt, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(const QOpcUaHistoryEvent &other)
Legt die Werte aus „ other “ in diesem Verlaufsereignis fest.
Zugehörige Nicht-Mitglieder
[noexcept] bool operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
Gibt „ true “ zurück, wenn „ lhs “ nicht gleich „ rhs “ ist.
[noexcept] bool operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
Gibt „ true “ zurück, wenn „ rhs “ und „ lhs “ dieselben Werte enthalten.
© 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.