QOpcUaHistoryReadEventRequest Class
Questa classe memorizza le informazioni necessarie per richiedere dati storici da un server. Per saperne di più...
| Intestazione: | #include <QOpcUaHistoryReadEventRequest> |
| 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
| QOpcUaHistoryReadEventRequest() | |
| QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter) | |
| QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other) | |
| QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other) | |
| ~QOpcUaHistoryReadEventRequest() | |
| void | addNodeToRead(const QOpcUaReadItem &nodeToRead) |
| QDateTime | endTimestamp() const |
| QOpcUaMonitoringParameters::EventFilter | filter() const |
| QList<QOpcUaReadItem> | nodesToRead() const |
| quint32 | numValuesPerNode() const |
| void | setEndTimestamp(const QDateTime &endTimestamp) |
| void | setFilter(const QOpcUaMonitoringParameters::EventFilter &filter) |
| void | setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead) |
| void | setNumValuesPerNode(quint32 numValuesPerNode) |
| void | setStartTimestamp(const QDateTime &startTimestamp) |
| QDateTime | startTimestamp() const |
| void | swap(QOpcUaHistoryReadEventRequest &other) |
| QOpcUaHistoryReadEventRequest & | operator=(QOpcUaHistoryReadEventRequest &&other) |
| QOpcUaHistoryReadEventRequest & | operator=(const QOpcUaHistoryReadEventRequest &other) |
Elementi non membri correlati
| bool | operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs) |
| bool | operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs) |
Descrizione dettagliata
Questa è la rappresentazione Qt OPC UA per l'OPC UA ReadEventDetails per la lettura dei dati storici definiti nella parte 11, 6.4.2 di OPC-UA.
Quando si richiedono dati storici da un server, è necessario fornire al server diversi valori per indicare quali dati raccogliere. La classe QOpcUaHistoryReadEventRequest fornisce i valori richiesti. startTimestamp e endTimestamp definiscono l'intervallo di tempo da cui devono essere raccolti gli eventi storici. nodesToRead definisce da quali nodi devono essere raccolti i dati storici. numValuesPerNode definisce il numero massimo di eventi che devono essere restituiti per ogni nodo. filter è il filtro degli eventi utilizzato per determinare quali eventi e quali dei loro campi devono essere restituiti.
Documentazione delle funzioni membro
QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest()
Crea un oggetto QOpcUaHistoryReadEventRequest non valido.
[explicit] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter)
Crea un oggetto QOpcUaHistoryReadEventRequest con i valori specificati.
QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other)
Crea un oggetto `QOpcUaHistoryReadEventRequest` a partire da ` other`.
[constexpr noexcept default] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other)
Crea un nuovo oggetto di richiesta di evento di lettura 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] QOpcUaHistoryReadEventRequest::~QOpcUaHistoryReadEventRequest()
Elimina l'oggetto della richiesta.
void QOpcUaHistoryReadEventRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)
Aggiunge un nodo all'elenco " nodeToRead ".
QDateTime QOpcUaHistoryReadEventRequest::endTimestamp() const
Restituisce il timestamp di fine.
Vedi anche setEndTimestamp().
QOpcUaMonitoringParameters::EventFilter QOpcUaHistoryReadEventRequest::filter() const
Restituisce il filtro degli eventi utilizzato per recuperare gli eventi storici.
Vedi anche setFilter().
QList<QOpcUaReadItem> QOpcUaHistoryReadEventRequest::nodesToRead() const
Restituisce l'elenco dei nodi da leggere.
Vedi anche setNodesToRead().
quint32 QOpcUaHistoryReadEventRequest::numValuesPerNode() const
Restituisce il numero di valori per nodo.
Vedi anche setNumValuesPerNode().
void QOpcUaHistoryReadEventRequest::setEndTimestamp(const QDateTime &endTimestamp)
Imposta endTimestamp per i dati storici da recuperare.
Vedi anche endTimestamp().
void QOpcUaHistoryReadEventRequest::setFilter(const QOpcUaMonitoringParameters::EventFilter &filter)
Imposta il filtro degli eventi utilizzato per recuperare gli eventi storici su filter.
Vedi anche filter().
void QOpcUaHistoryReadEventRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
Imposta l'elenco " nodesToRead ".
Vedi anche nodesToRead().
void QOpcUaHistoryReadEventRequest::setNumValuesPerNode(quint32 numValuesPerNode)
Imposta il parametro ` numValuesPerNode ` per specificare il numero di valori da recuperare per ogni nodo.
Vedi anche numValuesPerNode().
void QOpcUaHistoryReadEventRequest::setStartTimestamp(const QDateTime &startTimestamp)
Imposta startTimestamp per i dati storici da recuperare.
Vedi anche startTimestamp().
QDateTime QOpcUaHistoryReadEventRequest::startTimestamp() const
Restituisce il timestamp di inizio.
Vedi anche setStartTimestamp().
[noexcept] void QOpcUaHistoryReadEventRequest::swap(QOpcUaHistoryReadEventRequest &other)
La funzione `swaps` confronta l’oggetto della richiesta di evento di lettura other con questo oggetto della richiesta di evento di lettura. Questa operazione è molto veloce e non fallisce mai.
[noexcept] QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(QOpcUaHistoryReadEventRequest &&other)
L'operazione "move-assign" assegna other a questa istanza di QOpcUaHistoryReadEventRequest.
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.
QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(const QOpcUaHistoryReadEventRequest &other)
Imposta i valori provenienti da other in questa voce QOpcUaHistoryReadEventRequest.
Correlati (non membri)
[noexcept] bool operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
Restituisce ` true ` se ` lhs ` non è uguale a ` rhs`; altrimenti restituisce ` false`.
Due elementi QOpcUaHistoryReadEventRequest sono considerati non uguali se i loro startTimestamp, endTimestamp, numValuesPerNode, filter o nodesToRead non sono uguali.
[noexcept] bool operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
Restituisce true se lhs è uguale a rhs; in caso contrario, restituisce false.
Due elementi di tipo QOpcUaHistoryReadEventRequest sono considerati uguali se i loro valori startTimestamp, endTimestamp, numValuesPerNode, filter e nodesToRead sono uguali.
© 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.