QOpcUaHistoryReadRawRequest Class

This class stores the necessary information to request historic data from a server. 更多...

头: #include <QOpcUaHistoryReadRawRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.3

公共函数

QOpcUaHistoryReadRawRequest ()
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 )
QDateTime startTimestamp () const
void swap (QOpcUaHistoryReadRawRequest & other )
QOpcUaHistoryReadRawRequest & operator= (const 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.

成员函数文档编制

QOpcUaHistoryReadRawRequest:: QOpcUaHistoryReadRawRequest ()

Constructs an invalid QOpcUaHistoryReadRawRequest.

[explicit] QOpcUaHistoryReadRawRequest:: QOpcUaHistoryReadRawRequest (const QList < QOpcUaReadItem > & nodesToRead , const QDateTime & startTimestamp , const QDateTime & endTimestamp , quint32 numValuesPerNode = 0, bool returnBounds = false)

Constructs a QOpcUaHistoryReadRawRequest item with the given values.

QOpcUaHistoryReadRawRequest:: QOpcUaHistoryReadRawRequest (const QOpcUaHistoryReadRawRequest & other )

Constructs a QOpcUaHistoryReadRawRequest item from other .

QOpcUaHistoryReadRawRequest:: ~QOpcUaHistoryReadRawRequest ()

Destroys the request object.

void QOpcUaHistoryReadRawRequest:: addNodeToRead (const QOpcUaReadItem & nodeToRead )

Adds a node to the nodeToRead 列表。

QDateTime QOpcUaHistoryReadRawRequest:: endTimestamp () const

Returns the end time stamp.

另请参阅 setEndTimestamp ().

QList < QOpcUaReadItem > QOpcUaHistoryReadRawRequest:: nodesToRead () const

Returns the list of nodes to read.

另请参阅 setNodesToRead ().

quint32 QOpcUaHistoryReadRawRequest:: numValuesPerNode () const

Returns the number of values per node.

另请参阅 setNumValuesPerNode ().

bool QOpcUaHistoryReadRawRequest:: returnBounds () const

Returns if the return bounds should be requested.

另请参阅 setReturnBounds ().

void QOpcUaHistoryReadRawRequest:: setEndTimestamp (const QDateTime & endTimestamp )

设置 endTimestamp for the historical data to be fetched.

另请参阅 endTimestamp ().

void QOpcUaHistoryReadRawRequest:: setNodesToRead (const QList < QOpcUaReadItem > & nodesToRead )

设置 nodesToRead 列表。

另请参阅 nodesToRead ().

void QOpcUaHistoryReadRawRequest:: setNumValuesPerNode ( quint32 numValuesPerNode )

设置 numValuesPerNode to indicate the number of values per node to be fetched.

另请参阅 numValuesPerNode ().

void QOpcUaHistoryReadRawRequest:: setReturnBounds ( bool returnBounds )

设置 returnBounds to indicate if the return bounds should be requested.

另请参阅 returnBounds ().

void QOpcUaHistoryReadRawRequest:: setStartTimestamp (const QDateTime & startTimestamp )

设置 startTimestamp for the historical data to be fetched.

另请参阅 startTimestamp ().

QDateTime QOpcUaHistoryReadRawRequest:: startTimestamp () const

Returns the start time stamp.

另请参阅 setStartTimestamp ().

void QOpcUaHistoryReadRawRequest:: swap ( QOpcUaHistoryReadRawRequest & other )

Swaps this request instance with other 。此函数非常快且从不失败。

QOpcUaHistoryReadRawRequest &QOpcUaHistoryReadRawRequest:: operator= (const QOpcUaHistoryReadRawRequest & other )

设置值从 other 在此 QOpcUaHistoryReadRawRequest 项。

相关非成员

bool operator!= (const QOpcUaHistoryReadRawRequest & lhs , const QOpcUaHistoryReadRawRequest & rhs )

返回 true if lhs 不等于 rhs ;否则返回 false .

Two QOpcUaHistoryReadRawRequest items are considered not equal if their startTimestamp , endTimestamp , numValuesPerNode , returnBounds or nodesToRead are not equal.

bool operator== (const QOpcUaHistoryReadRawRequest & lhs , const QOpcUaHistoryReadRawRequest & rhs )

返回 true if lhs 等于 rhs ;否则返回 false .

Two QOpcUaHistoryReadRawRequest items are considered equal if their startTimestamp , endTimestamp , numValuesPerNode , returnBounds and nodesToRead 相等。