QOpcUaHistoryEvent Class
Questa classe memorizza gli eventi storici relativi a un nodo. Per saperne di più...
| Intestazione: | #include <QOpcUaHistoryEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| A partire da: | Qt 6.7 |
Funzioni pubbliche
| 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) |
Elementi non membri correlati
| bool | operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
| bool | operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
Descrizione dettagliata
Quando viene gestita una richiesta di lettura degli eventi della cronologia, le istanze di questa classe vengono utilizzate per memorizzare le informazioni relative al nodo che è stato letto, ai suoi eventi e al codice di stato. Il segnale finished di una risposta di lettura della cronologia restituirà un elenco di oggetti QOpcUaHistoryEvent che possono essere analizzati per esaminare i risultati della richiesta.
Documentazione delle funzioni membro
QOpcUaHistoryEvent::QOpcUaHistoryEvent()
Crea una voce di cronologia non valida.
[explicit] QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QString &nodeId)
Crea una voce relativa a un evento storico e memorizza a quale nodo essa corrisponde.
QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)
Crea una voce relativa a un evento storico da other.
[constexpr noexcept default] QOpcUaHistoryEvent::QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other)
Crea un nuovo oggetto evento storico a partire da other.
Nota: l’oggetto da cui è stato effettuato lo spostamento, other, viene posto in uno stato parzialmente formato, in cui le uniche operazioni valide sono la distruzione e l’assegnazione di un nuovo valore.
[noexcept] QOpcUaHistoryEvent::~QOpcUaHistoryEvent()
Elimina l'elemento relativo all'evento storico.
void QOpcUaHistoryEvent::addEvent(const QVariantList &value)
Aggiunge un elenco di campi evento specificato all'indirizzo value.
int QOpcUaHistoryEvent::count() const
Restituisce il numero di eventi disponibili.
QList<QVariantList> QOpcUaHistoryEvent::events() const
Restituisce l'elenco degli oggetti ` QVariantList ` contenenti i risultati della richiesta di lettura della cronologia.
QString QOpcUaHistoryEvent::nodeId() const
Restituisce l'ID del nodo (nodeId) i cui eventi sono stati memorizzati.
Vedi anche setNodeId().
void QOpcUaHistoryEvent::setNodeId(const QString &nodeId)
Imposta l'nodeId su nodeId.
Vedi anche nodeId().
void QOpcUaHistoryEvent::setStatusCode(QOpcUa::UaStatusCode statusCode)
Imposta il codice di stato su statusCode.
Vedi anche statusCode().
QOpcUa::UaStatusCode QOpcUaHistoryEvent::statusCode() const
Restituisce il codice di stato che indica se si è verificato un errore durante il recupero degli eventi della cronologia.
Vedi anche setStatusCode().
[noexcept] void QOpcUaHistoryEvent::swap(QOpcUaHistoryEvent &other)
Sostituisce l'oggetto evento della cronologia other con questo oggetto evento della cronologia. Questa operazione è molto veloce e non fallisce mai.
[noexcept] QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(QOpcUaHistoryEvent &&other)
L'operazione "move-assign" assegna other a questa istanza QOpcUaHistoryEvent.
Nota: l'oggetto da cui è stato effettuato lo spostamento, other, viene posto in uno stato parzialmente formato, in cui le uniche operazioni valide sono la distruzione e l'assegnazione di un nuovo valore.
QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(const QOpcUaHistoryEvent &other)
Imposta i valori provenienti da other in questa voce della cronologia.
Persone correlate non iscritte
[noexcept] bool operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
Restituisce " true " se " lhs " non è uguale a " rhs".
[noexcept] bool operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
Restituisce " true " se " rhs " e " lhs " contengono gli stessi valori.
© 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.