This class stores the options for a read operation. More...
Header: | #include <QOpcUaReadItem> |
qmake: | QT += opcua |
QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString()) | |
QOpcUaReadItem(const QOpcUaReadItem &other) | |
QOpcUaReadItem & | operator=(const QOpcUaReadItem &rhs) |
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) |
A read operation on an OPC UA server returns the entire value or a certain index range of the value of an attribute of a node on the server. This class contains the necessary information for the backend to make a read request to the server.
One or multiple objects of this class make up the request of a QOpcUaClient::readNodeAttributes() operation.
See also QOpcUaClient::readNodeAttributes() and QOpcUaReadResult.
Constructs a read item for the index range indexRange of the attribute attr of node nodeId.
Constructs a read item from other.
Sets the values from rhs in this read item.
Returns the node attribute id.
See also setAttribute().
Returns the index range.
See also setIndexRange().
Returns the node id.
See also setNodeId().
Sets the node attribute id to attribute.
See also attribute().
Sets the index range to indexRange.
See also indexRange().
Sets the node id to nodeId.
See also nodeId().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qopcuareaditem.html