This class stores OPC UA value data and associated metadata. 更多...
头: | #include <QOpcUaDataValue> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
QOpcUaDataValue () | |
QOpcUaDataValue (const QOpcUaDataValue & other ) | |
~QOpcUaDataValue () | |
QDateTime | serverTimestamp () const |
void | setServerTimestamp (const QDateTime & serverTimestamp ) |
void | setSourceTimestamp (const QDateTime & sourceTimestamp ) |
void | setStatusCode (QOpcUa::UaStatusCode statusCode ) |
void | setValue (const QVariant & value ) |
QDateTime | sourceTimestamp () const |
QOpcUa::UaStatusCode | statusCode () const |
void | swap (QOpcUaDataValue & other ) |
QVariant | value () const |
QOpcUaDataValue & | operator= (const QOpcUaDataValue & other ) |
This class corresponds to the OPC UA DataValue type.
Constructs an invalid data value.
Constructs a data value from other .
Destroys the data value.
Returns the server timestamp for value ().
另请参阅 setServerTimestamp ().
Sets the server timestamp to serverTimestamp .
另请参阅 serverTimestamp ().
Sets the source timestamp to sourceTimestamp .
另请参阅 sourceTimestamp ().
Sets the status code to statusCode .
另请参阅 statusCode ().
Sets the value to value .
另请参阅 value ().
Returns the source timestamp for value ().
另请参阅 setSourceTimestamp ().
Returns the status code for this data value. If the status code is not Good , the value and the timestamps are invalid.
另请参阅 setStatusCode ().
Swaps this data value instance with other 。此函数非常快且从不失败。
Returns the value.
另请参阅 setValue ().
设置值从 other in this data value.