This class stores the necessary information to request historic data from a server. More...
Header: | #include <QOpcUaHistoryReadRawRequest> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other) | |
QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false) | |
QOpcUaHistoryReadRawRequest() | |
QOpcUaHistoryReadRawRequest & | operator=(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) |
QDateTime | startTimestamp() const |
void | swap(QOpcUaHistoryReadRawRequest &other) |
bool | operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
bool | operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs) |
This is the Qt OPC UA representation for the OPC UA ReadRawModifiedDetails for reading historical data defined in OPC-UA part 11, 6.4.3.
When requesting historic data from a server, several values need to be provided to the server to know which data to collect. The QOpcUaHistoryReadRawRequest class provides the required values. startTimestamp and endTimestamp define the timerange where historic data should be collected from. nodesToRead defines from which nodes historic data should be collected. numValuesPerNode defines the maximum number of data values that should be returned per node. returnBounds defines if the bounding values should be included in the result.
Constructs a QOpcUaHistoryReadRawRequest item from other.
Constructs a QOpcUaHistoryReadRawRequest item with the given values.
Constructs an invalid QOpcUaHistoryReadRawRequest.
Sets the values from other in this QOpcUaHistoryReadRawRequest item.
Destroys the request object.
Adds a node to the nodeToRead list.
Returns the end time stamp.
See also setEndTimestamp().
Returns the list of nodes to read.
See also setNodesToRead().
Returns the number of values per node.
See also setNumValuesPerNode().
Returns if the return bounds should be requested.
See also setReturnBounds().
Sets endTimestamp for the historical data to be fetched.
See also endTimestamp().
Sets the nodesToRead list.
See also nodesToRead().
Sets numValuesPerNode to indicate the number of values per node to be fetched.
See also numValuesPerNode().
Sets returnBounds to indicate if the return bounds should be requested.
See also returnBounds().
Sets startTimestamp for the historical data to be fetched.
See also startTimestamp().
Returns the start time stamp.
See also setStartTimestamp().
Swaps this request instance with other. This function is very fast and never fails.
Returns true
if lhs is not equal to rhs; otherwise returns false
.
Two QOpcUaHistoryReadRawRequest items are considered not equal if their startTimestamp
, endTimestamp
, numValuesPerNode
,
returnBounds
or nodesToRead
are not equal.
Returns true
if lhs is equal to rhs; otherwise returns false
.
Two QOpcUaHistoryReadRawRequest items are considered equal if their startTimestamp
, endTimestamp
, numValuesPerNode
,
returnBounds
and nodesToRead
are equal.