QOpcUaDataValue Class
Questa classe memorizza i dati di valore OPC UA e i metadati associati. Per saperne di più...
| Intestazione: | #include <QOpcUaDataValue> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| A partire da: | Qt 6.3 |
Funzioni pubbliche
| 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) | operator QVariant() const |
| QOpcUaDataValue & | operator=(const QOpcUaDataValue &other) |
Elementi non membri correlati
(since 6.7) bool | operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
(since 6.7) bool | operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) |
Documentazione delle funzioni membro
QOpcUaDataValue::QOpcUaDataValue()
Crea un valore di dati non valido.
QOpcUaDataValue::QOpcUaDataValue(const QOpcUaDataValue &other)
Crea un valore di dati a partire da other.
[noexcept] QOpcUaDataValue::~QOpcUaDataValue()
Elimina il valore dei dati.
[since 6.7] quint16 QOpcUaDataValue::serverPicoseconds() const
Restituisce il numero di intervalli di 10 picosecondi relativi al timestamp del server.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche setServerPicoseconds().
QDateTime QOpcUaDataValue::serverTimestamp() const
Restituisce il timestamp del server per value().
Vedi anche setServerTimestamp().
[since 6.7] void QOpcUaDataValue::setServerPicoseconds(quint16 serverPicoseconds)
Imposta il numero di intervalli di 10 picosecondi per il timestamp del server su serverPicoseconds.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche serverPicoseconds().
void QOpcUaDataValue::setServerTimestamp(const QDateTime &serverTimestamp)
Imposta il timestamp del server su serverTimestamp.
Vedi anche serverTimestamp().
[since 6.7] void QOpcUaDataValue::setSourcePicoseconds(quint16 sourcePicoseconds)
Imposta il numero di intervalli di 10 picosecondi per il timestamp della sorgente su sourcePicoseconds.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche sourcePicoseconds().
void QOpcUaDataValue::setSourceTimestamp(const QDateTime &sourceTimestamp)
Imposta il timestamp di origine su sourceTimestamp.
Vedi anche sourceTimestamp().
void QOpcUaDataValue::setStatusCode(QOpcUa::UaStatusCode statusCode)
Imposta il codice di stato su statusCode.
Vedi anche statusCode().
void QOpcUaDataValue::setValue(const QVariant &value)
Imposta il valore su value.
Se questo valore deve essere utilizzato con ` QOpcUaBinaryDataEncoding ` o ` QOpcUaGenericStructHandler`, il tipo del valore deve essere ` QOpcUaVariant`.
Vedi anche value().
[since 6.7] quint16 QOpcUaDataValue::sourcePicoseconds() const
Restituisce il numero di intervalli di 10 picosecondi relativi al timestamp di origine.
Questa funzione è stata introdotta in Qt 6.7.
Vedi anche setSourcePicoseconds().
QDateTime QOpcUaDataValue::sourceTimestamp() const
Restituisce il timestamp di origine per value().
Vedi anche setSourceTimestamp().
QOpcUa::UaStatusCode QOpcUaDataValue::statusCode() const
Restituisce il codice di stato relativo a questo valore. Se il codice di stato non è Good, il valore e i timestamp non sono validi.
Vedi anche setStatusCode().
[noexcept] void QOpcUaDataValue::swap(QOpcUaDataValue &other)
Sostituisce questa istanza del valore di dati con other. Questa funzione è molto veloce e non fallisce mai.
QVariant QOpcUaDataValue::value() const
Restituisce il valore.
Vedi anche setValue().
[since 6.7] QOpcUaDataValue::operator QVariant() const
Restituisce un oggetto ` QVariant ` contenente questo valore.
Questa funzione è stata introdotta in Qt 6.7.
QOpcUaDataValue &QOpcUaDataValue::operator=(const QOpcUaDataValue &other)
Imposta i valori provenienti da other in questo valore di dati.
Elementi correlati non membri
[noexcept, since 6.7] bool operator!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
Restituisce ` true ` se ` lhs ` non è uguale a ` rhs`.
Questa funzione è stata introdotta in Qt 6.7.
[noexcept, since 6.7] bool operator==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs)
Restituisce ` true ` se ` lhs ` è uguale a ` rhs`.
Questa funzione è stata introdotta in Qt 6.7.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.