QOpcUaHistoryReadRawRequest Class
Questa classe memorizza le informazioni necessarie per richiedere dati storici da un server. Per saperne di più...
| Intestazione: | #include <QOpcUaHistoryReadRawRequest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| A partire da: | Qt 6.3 |
Funzioni pubbliche
| QOpcUaHistoryReadRawRequest() | |
(since 6.7) | QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn) |
| QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false) | |
| QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other) | |
| ~QOpcUaHistoryReadRawRequest() | |
| void | addNodeToRead(const QOpcUaReadItem &nodeToRead) |
| QDateTime | endTimestamp() const |
| QList<QOpcUaReadItem> | nodesToRead() const |
| quint32 | numValuesPerNode() const |
| bool | returnBounds() const |
| void | setEndTimestamp(const QDateTime &endTimestamp) |
| void | setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead) |
| void | setNumValuesPerNode(quint32 numValuesPerNode) |
| void | setReturnBounds(bool returnBounds) |
| void | setStartTimestamp(const QDateTime &startTimestamp) |
(since 6.7) void | setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn) |
| QDateTime | startTimestamp() const |
| void | swap(QOpcUaHistoryReadRawRequest &other) |
(since 6.7) QOpcUa::TimestampsToReturn | timestampsToReturn() const |
| QOpcUaHistoryReadRawRequest & | operator=(const QOpcUaHistoryReadRawRequest &other) |
Elementi non membri correlati
| bool | operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
| bool | operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
Descrizione dettagliata
Questa è la rappresentazione Qt OPC UA per OPC UA ReadRawModifiedDetails per la lettura dei dati storici definiti in OPC UA 1.04 parte 11, 6.4.3.
Quando si richiedono dati storici da un server, è necessario fornire al server diversi valori per indicare quali dati raccogliere. La classe `QOpcUaHistoryReadRawRequest` fornisce i valori richiesti. ` startTimestamp ` e ` endTimestamp ` definiscono l'intervallo di tempo da cui devono essere raccolti i dati storici. ` nodesToRead ` definisce da quali nodi devono essere raccolti i dati storici. ` numValuesPerNode ` definisce il numero massimo di valori di dati che devono essere restituiti per ogni nodo. ` returnBounds ` definisce se i valori limite devono essere inclusi nel risultato.
Documentazione delle funzioni membro
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest()
Crea una richiesta QOpcUaHistoryReadRawRequest non valida.
[explicit, since 6.7] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn)
Crea un oggetto `QOpcUaHistoryReadRawRequest` con i valori specificati. Il parametro ` timestampsToReturn ` determina i timestamp da restituire per ciascun valore.
Questa funzione è stata introdotta in Qt 6.7.
[explicit] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false)
Crea un oggetto QOpcUaHistoryReadRawRequest con i valori specificati.
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other)
Crea un oggetto QOpcUaHistoryReadRawRequest a partire da other.
[noexcept] QOpcUaHistoryReadRawRequest::~QOpcUaHistoryReadRawRequest()
Elimina l'oggetto della richiesta.
void QOpcUaHistoryReadRawRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)
Aggiunge un nodo all'elenco " nodeToRead ".
QDateTime QOpcUaHistoryReadRawRequest::endTimestamp() const
Restituisce il timestamp di fine.
Vedi anche setEndTimestamp().
QList<QOpcUaReadItem> QOpcUaHistoryReadRawRequest::nodesToRead() const
Restituisce l'elenco dei nodi da leggere.
Vedi anche setNodesToRead().
quint32 QOpcUaHistoryReadRawRequest::numValuesPerNode() const
Restituisce il numero di valori per nodo.
Vedi anche setNumValuesPerNode().
bool QOpcUaHistoryReadRawRequest::returnBounds() const
Indica se è necessario richiedere i limiti di ritorno.
Vedi anche setReturnBounds().
void QOpcUaHistoryReadRawRequest::setEndTimestamp(const QDateTime &endTimestamp)
Imposta ` endTimestamp ` per i dati storici da recuperare.
Vedi anche endTimestamp().
void QOpcUaHistoryReadRawRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
Imposta l'elenco " nodesToRead ".
Vedi anche nodesToRead().
void QOpcUaHistoryReadRawRequest::setNumValuesPerNode(quint32 numValuesPerNode)
Imposta il parametro ` numValuesPerNode ` per specificare il numero di valori da recuperare per ogni nodo.
Vedi anche numValuesPerNode().
void QOpcUaHistoryReadRawRequest::setReturnBounds(bool returnBounds)
Imposta il parametro ` returnBounds ` per indicare se è necessario richiedere i limiti di ritorno.
Vedi anche returnBounds().
void QOpcUaHistoryReadRawRequest::setStartTimestamp(const QDateTime &startTimestamp)
Imposta startTimestamp per i dati storici da recuperare.
Vedi anche startTimestamp().
[since 6.7] void QOpcUaHistoryReadRawRequest::setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)
Imposta i timestamp selezionati da restituire per ciascun valore a timestampsToReturn.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche timestampsToReturn().
QDateTime QOpcUaHistoryReadRawRequest::startTimestamp() const
Restituisce il timestamp di inizio.
Vedi anche setStartTimestamp().
[noexcept] void QOpcUaHistoryReadRawRequest::swap(QOpcUaHistoryReadRawRequest &other)
Sostituisce questa istanza di richiesta con other. Questa funzione è molto veloce e non fallisce mai.
[since 6.7] QOpcUa::TimestampsToReturn QOpcUaHistoryReadRawRequest::timestampsToReturn() const
Restituisce i timestamp selezionati da restituire per ciascun valore.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche setTimestampsToReturn().
QOpcUaHistoryReadRawRequest &QOpcUaHistoryReadRawRequest::operator=(const QOpcUaHistoryReadRawRequest &other)
Imposta i valori provenienti da other in questa voce QOpcUaHistoryReadRawRequest.
Correlati (non membri)
[noexcept] bool operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
Restituisce ` true ` se ` lhs ` non è uguale a ` rhs`; altrimenti restituisce ` false`.
Due elementi QOpcUaHistoryReadRawRequest sono considerati non uguali se i loro startTimestamp, endTimestamp, numValuesPerNode, returnBounds o nodesToRead non sono uguali.
[noexcept] bool operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
Restituisce ` true ` se ` lhs ` è uguale a ` rhs`; altrimenti restituisce ` false`.
Due elementi di tipo QOpcUaHistoryReadRawRequest sono considerati uguali se i loro startTimestamp, endTimestamp, numValuesPerNode, returnBounds 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.