QOpcUaReadItem Class
Questa classe memorizza le opzioni relative a un'operazione di lettura. Per saperne di più...
| Intestazione: | #include <QOpcUaReadItem> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funzioni pubbliche
| QOpcUaReadItem() | |
| QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString()) | |
| QOpcUaReadItem(const QOpcUaReadItem &other) | |
| QOpcUa::NodeAttribute | attribute() const |
| QString | indexRange() const |
| QString | nodeId() const |
| void | setAttribute(QOpcUa::NodeAttribute attribute) |
| void | setIndexRange(const QString &indexRange) |
| void | setNodeId(const QString &nodeId) |
| QOpcUaReadItem & | operator=(const QOpcUaReadItem &rhs) |
Elementi non membri correlati
| bool | operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs) |
| bool | operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs) |
Descrizione dettagliata
Un'operazione di lettura su un server OPC UA restituisce il valore completo o un determinato intervallo di indici del valore di un attributo di un nodo presente sul server. Questa classe contiene le informazioni necessarie affinché il backend possa effettuare una richiesta di lettura al server.
Uno o più oggetti di questa classe costituiscono la richiesta di un'operazione QOpcUaClient::readNodeAttributes().
Vedi anche QOpcUaClient::readNodeAttributes() e QOpcUaReadResult.
Documentazione delle funzioni membro
QOpcUaReadItem::QOpcUaReadItem()
Il valore predefinito crea un elemento di lettura senza parametri specificati.
QOpcUaReadItem::QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())
Crea un elemento di lettura per l'intervallo di indice indexRange dell'attributo attr del nodo nodeId.
QOpcUaReadItem::QOpcUaReadItem(const QOpcUaReadItem &other)
Crea un elemento di lettura da other.
QOpcUa::NodeAttribute QOpcUaReadItem::attribute() const
Restituisce l'attributo id del nodo.
Vedi anche setAttribute().
QString QOpcUaReadItem::indexRange() const
Restituisce l'intervallo di indici.
Vedi anche setIndexRange().
QString QOpcUaReadItem::nodeId() const
Restituisce l'ID del nodo.
Vedi anche setNodeId().
void QOpcUaReadItem::setAttribute(QOpcUa::NodeAttribute attribute)
Imposta l'attributo id del nodo su attribute.
Vedi anche attribute().
void QOpcUaReadItem::setIndexRange(const QString &indexRange)
Imposta l'intervallo dell'indice su indexRange.
Vedi anche indexRange().
void QOpcUaReadItem::setNodeId(const QString &nodeId)
Imposta l'ID del nodo su nodeId.
Vedi anche nodeId().
QOpcUaReadItem &QOpcUaReadItem::operator=(const QOpcUaReadItem &rhs)
Imposta i valori provenienti da rhs in questa voce di lettura.
Elementi correlati non membri
[noexcept] bool operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)
Restituisce true se lhs non è uguale a rhs; altrimenti restituisce false.
Due elementi letti sono considerati non uguali se i loro valori nodeId, attribute o indexRange non sono uguali.
[noexcept] bool operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)
Restituisce true se lhs è uguale a rhs; in caso contrario, restituisce false.
Due elementi letti sono considerati uguali se i loro valori nodeId, attribute e indexRange sono uguali.
© 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.