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() | |
| QOpcUaDataValue(const QOpcUaDataValue &other) | |
| ~QOpcUaDataValue() | |
(since 6.7) quint16 |
serverPicoseconds() const |
| QDateTime | serverTimestamp() const |
(since 6.7) void |
setServerPicoseconds(quint16 serverPicoseconds) |
| void | setServerTimestamp(const QDateTime &serverTimestamp) |
(since 6.7) void |
setSourcePicoseconds(quint16 sourcePicoseconds) |
| void | setSourceTimestamp(const QDateTime &sourceTimestamp) |
| void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
| void | setValue(const QVariant &value) |
(since 6.7) quint16 |
sourcePicoseconds() const |
| QDateTime | sourceTimestamp() const |
| QOpcUa::UaStatusCode | statusCode() const |
| void | swap(QOpcUaDataValue &other) |
| QVariant | value() const |
(since 6.7) QVariant |
operator QVariant() const |
| QOpcUaDataValue & | operator=(const QOpcUaDataValue &other) |
(since 6.7) bool |
operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
(since 6.7) bool |
operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
This class corresponds to the OPC UA DataValue type.
Constructs an invalid data value.
Constructs a data value from other.
[noexcept] QOpcUaDataValue::~QOpcUaDataValue()Destroys the data value.
[since 6.7] quint16 QOpcUaDataValue::serverPicoseconds() constReturns the number of 10 picosecond intervals for the server timestamp.
This function was introduced in Qt 6.7.
See also setServerPicoseconds().
Returns the server timestamp for value().
See also setServerTimestamp().
[since 6.7] void QOpcUaDataValue::setServerPicoseconds(quint16 serverPicoseconds)Sets the number of 10 picosecond intervals for the server timestamp to serverPicoseconds.
This function was introduced in Qt 6.7.
See also serverPicoseconds().
Sets the server timestamp to serverTimestamp.
See also serverTimestamp().
[since 6.7] void QOpcUaDataValue::setSourcePicoseconds(quint16 sourcePicoseconds)Sets the number of 10 picosecond intervals for the source timestamp to sourcePicoseconds.
This function was introduced in Qt 6.7.
See also sourcePicoseconds().
Sets the source timestamp to sourceTimestamp.
See also sourceTimestamp().
Sets the status code to statusCode.
See also statusCode().
Sets the value to value.
If this data value is to be used with QOpcUaBinaryDataEncoding or QOpcUaGenericStructHandler, the value's type must be QOpcUaVariant.
See also value().
[since 6.7] quint16 QOpcUaDataValue::sourcePicoseconds() constReturns the number of 10 picosecond intervals for the source timestamp.
This function was introduced in Qt 6.7.
See also setSourcePicoseconds().
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().
[noexcept] void QOpcUaDataValue::swap(QOpcUaDataValue &other)Swaps this data value instance with other. This function is very fast and never fails.
Returns the value.
See also setValue().
[since 6.7] QVariant QOpcUaDataValue::operator
QVariant() constReturns a QVariant containing this data value.
This function was introduced in Qt 6.7.
Sets the values from other in this data value.
[noexcept, since 6.7] bool operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)Returns true if lhs is not equal to rhs.
This function was introduced in Qt 6.7.
[noexcept, since 6.7] bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)Returns true if lhs is equal to rhs.
This function was introduced in Qt 6.7.