This class stores OPC UA value data and associated metadata. More...
Header: | #include <QOpcUaDataValue> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
QOpcUaDataValue(const QOpcUaDataValue &other) | |
QOpcUaDataValue() | |
QOpcUaDataValue & | operator=(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 |
This class corresponds to the OPC UA DataValue type.
Constructs a data value from other.
Constructs an invalid data value.
Sets the values from other in this data value.
Destroys the data value.
Returns the server timestamp for value().
See also setServerTimestamp().
Sets the server timestamp to serverTimestamp.
See also serverTimestamp().
Sets the source timestamp to sourceTimestamp.
See also sourceTimestamp().
Sets the status code to statusCode.
See also statusCode().
Sets the value to value.
See also value().
Returns the source timestamp for value().
See also setSourceTimestamp().
Returns the status code for this data value. If the status code is not Good, the value and the timestamps are invalid.
See also setStatusCode().
Swaps this data value instance with other. This function is very fast and never fails.
Returns the value.
See also setValue().
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: