QOpcUaReadItem Class

This class stores the options for a read operation. 更多...

頭: #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.

另請參閱 QOpcUaClient::readNodeAttributes () 和 QOpcUaReadResult .

成員函數文檔編製

QOpcUaReadItem:: QOpcUaReadItem (const QString & nodeId , QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString & indexRange = QString())

Constructs a read item for the index range indexRange of the attribute attr of node nodeId .

QOpcUaReadItem:: QOpcUaReadItem (const QOpcUaReadItem & other )

Constructs a read item from other .

QOpcUaReadItem &QOpcUaReadItem:: operator= (const QOpcUaReadItem & rhs )

設置值從 rhs in this read item.

QOpcUa::NodeAttribute QOpcUaReadItem:: attribute () const

Returns the node attribute id.

另請參閱 setAttribute ().

QString QOpcUaReadItem:: indexRange () const

Returns the index range.

另請參閱 setIndexRange ().

QString QOpcUaReadItem:: nodeId () const

Returns the node id.

另請參閱 setNodeId ().

void QOpcUaReadItem:: setAttribute ( QOpcUa::NodeAttribute attribute )

Sets the node attribute id to attribute .

另請參閱 attribute ().

void QOpcUaReadItem:: setIndexRange (const QString & indexRange )

Sets the index range to indexRange .

另請參閱 indexRange ().

void QOpcUaReadItem:: setNodeId (const QString & nodeId )

Sets the node id to nodeId .

另請參閱 nodeId ().