This class stores historical data values from a node. More...
Header: | #include <QOpcUaHistoryData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
QOpcUaHistoryData(const QOpcUaHistoryData &other) | |
QOpcUaHistoryData(const QString &nodeId) | |
QOpcUaHistoryData() | |
QOpcUaHistoryData & | operator=(const QOpcUaHistoryData &other) |
~QOpcUaHistoryData() | |
void | addValue(const QOpcUaDataValue &value) |
int | count() const |
QString | nodeId() const |
QList<QOpcUaDataValue> | result() const |
void | setNodeId(const QString &nodeId) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaHistoryData &other) |
When a request to read history data is being handled, instances of this class are used to store information about which node has been read, its values and the status code. The finished signal of a history read request will return a list of QOpcUaHistoryData objects which can be parsed to review the results of the request.
Constructs a history data item from other.
Constructs a history data item and stores which node it corresponds to.
Constructs an invalid history data item.
Sets the values from other in this history data item.
Destroys the history data item.
Adds a data value object given by value.
Returns the number of available data value objects.
Returns the nodeId of the node whose data has been stored.
See also setNodeId().
Returns the list of data value objects which contain the results of the history read request.
Sets the nodeId to nodeId.
See also nodeId().
Sets the status code to statusCode.
See also statusCode().
Returns the status code which indicates if an error occurred while fetching the history data.
See also setStatusCode().
Swaps this data value instance with other. This function is very fast and never fails.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: