QOpcUaHistoryEvent Class

Diese Klasse speichert historische Ereignisse aus einem Knoten. Mehr...

Kopfzeile: #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)
bool operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
bool operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)

Detaillierte Beschreibung

Wenn eine Anfrage zum Lesen von Verlaufsereignissen bearbeitet wird, werden Instanzen dieser Klasse verwendet, um Informationen darüber zu speichern, welcher Knoten gelesen wurde, seine Ereignisse und den Statuscode. Das Endsignal einer History-Read-Antwort gibt eine Liste von QOpcUaHistoryEvent-Objekten zurück, die geparst werden können, um die Ergebnisse der Anfrage zu überprüfen.

Dokumentation der Mitgliedsfunktionen

QOpcUaHistoryEvent::QOpcUaHistoryEvent()

Konstruiert ein ungültiges Ereignis-Element.

[explicit] QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QString &nodeId)

Konstruiert ein Historienereignis und speichert, welchem Knoten es entspricht.

QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)

Konstruiert ein Historien-Ereignis-Element aus other.

[noexcept] QOpcUaHistoryEvent::QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other)

Move-konstruiert ein neues History-Event-Objekt aus other.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen die Zerstörung und die Zuweisung eines neuen Wertes sind.

[noexcept] QOpcUaHistoryEvent::~QOpcUaHistoryEvent()

Zerstört das Ereignis in der Historie.

void QOpcUaHistoryEvent::addEvent(const QVariantList &value)

Fügt eine Ereignisfeldliste hinzu, die durch value angegeben wird.

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 Anfrage zum Lesen der Historie 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 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 historische Ereignisobjekt other mit diesem historischen Ereignisobjekt aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

[noexcept] QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(QOpcUaHistoryEvent &&other)

Verschieben - weist other dieser Instanz QOpcUaHistoryEvent zu.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen Zerstörung und Zuweisung eines neuen Wertes sind.

QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(const QOpcUaHistoryEvent &other)

Legt die Werte von other in diesem Ereignis-Element fest.

Verwandte 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 die gleichen Werte enthalten.

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