QOpcUaHistoryReadRawRequest Class
Essa classe armazena as informações necessárias para solicitar dados históricos de um servidor. Mais...
| Cabeçalho: | #include <QOpcUaHistoryReadRawRequest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Desde: | Qt 6.3 |
Funções públicas
| 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) |
Não-membros relacionados
| bool | operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
| bool | operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
Descrição detalhada
Esta é a representação do Qt OPC UA para o OPC UA ReadRawModifiedDetails, destinado à leitura de dados históricos, conforme definido na norma OPC UA 1.04, parte 11, seção 6.4.3.
Ao solicitar dados históricos de um servidor, é necessário fornecer vários valores ao servidor para que ele saiba quais dados coletar. A classe QOpcUaHistoryReadRawRequest fornece os valores necessários. startTimestamp e endTimestamp definem o intervalo de tempo do qual os dados históricos devem ser coletados. nodesToRead define de quais nós os dados históricos devem ser coletados. numValuesPerNode define o número máximo de valores de dados que devem ser retornados por nó. returnBounds define se os valores limite devem ser incluídos no resultado.
Documentação das funções-membro
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest()
Cria um objeto `QOpcUaHistoryReadRawRequest` inválido.
[explicit, since 6.7] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn)
Cria um objeto QOpcUaHistoryReadRawRequest com os valores fornecidos. O parâmetro ` timestampsToReturn ` determina os carimbos de data e hora a serem retornados para cada valor.
Esta função foi introduzida no Qt 6.7.
[explicit] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false)
Cria um item QOpcUaHistoryReadRawRequest com os valores fornecidos.
QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other)
Cria um objeto `QOpcUaHistoryReadRawRequest` a partir de ` other`.
[noexcept] QOpcUaHistoryReadRawRequest::~QOpcUaHistoryReadRawRequest()
Destrói o objeto de solicitação.
void QOpcUaHistoryReadRawRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)
Adiciona um nó à lista nodeToRead.
QDateTime QOpcUaHistoryReadRawRequest::endTimestamp() const
Retorna o carimbo de data e hora final.
Veja também setEndTimestamp().
QList<QOpcUaReadItem> QOpcUaHistoryReadRawRequest::nodesToRead() const
Retorna a lista de nós a serem lidos.
Veja também ` setNodesToRead()`.
quint32 QOpcUaHistoryReadRawRequest::numValuesPerNode() const
Retorna o número de valores por nó.
Veja também setNumValuesPerNode().
bool QOpcUaHistoryReadRawRequest::returnBounds() const
Retorna se os limites de retorno devem ser solicitados.
Veja também setReturnBounds().
void QOpcUaHistoryReadRawRequest::setEndTimestamp(const QDateTime &endTimestamp)
Define ` endTimestamp ` para os dados históricos a serem recuperados.
Veja também endTimestamp().
void QOpcUaHistoryReadRawRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
Define a lista “ nodesToRead ”.
Veja também nodesToRead().
void QOpcUaHistoryReadRawRequest::setNumValuesPerNode(quint32 numValuesPerNode)
Define ` numValuesPerNode ` para indicar o número de valores por nó a serem buscados.
Veja também numValuesPerNode().
void QOpcUaHistoryReadRawRequest::setReturnBounds(bool returnBounds)
Define ` returnBounds ` para indicar se os limites de retorno devem ser solicitados.
Veja também returnBounds().
void QOpcUaHistoryReadRawRequest::setStartTimestamp(const QDateTime &startTimestamp)
Define ` startTimestamp ` para os dados históricos a serem obtidos.
Veja também startTimestamp().
[since 6.7] void QOpcUaHistoryReadRawRequest::setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)
Define os carimbos de data e hora selecionados a serem retornados para cada valor em ` timestampsToReturn`.
Esta função foi introduzida no Qt 6.7.
Veja também timestampsToReturn().
QDateTime QOpcUaHistoryReadRawRequest::startTimestamp() const
Retorna o carimbo de data e hora inicial.
Veja também setStartTimestamp().
[noexcept] void QOpcUaHistoryReadRawRequest::swap(QOpcUaHistoryReadRawRequest &other)
Troca esta instância de solicitação por other. Essa função é muito rápida e nunca falha.
[since 6.7] QOpcUa::TimestampsToReturn QOpcUaHistoryReadRawRequest::timestampsToReturn() const
Retorna os carimbos de data e hora selecionados a serem retornados para cada valor.
Essa função foi introduzida no Qt 6.7.
Veja também ` setTimestampsToReturn()`.
QOpcUaHistoryReadRawRequest &QOpcUaHistoryReadRawRequest::operator=(const QOpcUaHistoryReadRawRequest &other)
Define os valores de other neste item QOpcUaHistoryReadRawRequest.
Não membros relacionados
[noexcept] bool operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
Retorna ` true ` se ` lhs ` não for igual a ` rhs`; caso contrário, retorna ` false`.
Dois itens QOpcUaHistoryReadRawRequest são considerados diferentes se seus startTimestamp, endTimestamp, numValuesPerNode, returnBounds ou nodesToRead forem diferentes.
[noexcept] bool operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
Retorna ` true ` se ` lhs ` for igual a ` rhs`; caso contrário, retorna ` false`.
Dois itens QOpcUaHistoryReadRawRequest são considerados iguais se seus startTimestamp, endTimestamp, numValuesPerNode, returnBounds e nodesToRead forem iguais.
© 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.