QOpcUaWriteResult Class

This class stores the result of a write operation. 更多...

头: #include <QOpcUaWriteResult>
qmake: QT += opcua

公共函数

  QOpcUaWriteResult (const QOpcUaWriteResult & other )
QOpcUaWriteResult & operator= (const QOpcUaWriteResult & rhs )
QOpcUa::NodeAttribute 属性 () const
QString indexRange () const
QString nodeId () const
void setAttribute (QOpcUa::NodeAttribute 属性 )
void setIndexRange (const QString & indexRange )
void setNodeId (const QString & nodeId )
void setStatusCode (QOpcUa::UaStatusCode statusCode )
QOpcUa::UaStatusCode statusCode () const

详细描述

A write operation on an OPC UA server returns a status code which describes if the value could be written and if not, for what reason the write has failed.

In addition to the status code returned by the server, this class also contains the node id, the attribute and the index range from the request to enable a client to match the result with a request.

Objects of this class are returned in the QOpcUaClient::writeNodeAttributesFinished () signal and contain the result of a write operation that was part of a QOpcUaClient::writeNodeAttributes () request.

另请参阅 QOpcUaClient::writeNodeAttributes (), QOpcUaClient::writeNodeAttributesFinished (),和 QOpcUaWriteItem .

成员函数文档编制

QOpcUaWriteResult:: QOpcUaWriteResult (const QOpcUaWriteResult & other )

Constructs a write result from other .

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

设置值从 rhs in this write result.

QOpcUa::NodeAttribute QOpcUaWriteResult:: 属性 () const

Returns the attribute of the write result.

另请参阅 setAttribute ().

QString QOpcUaWriteResult:: indexRange () const

Returns the index range of the write result.

另请参阅 setIndexRange ().

QString QOpcUaWriteResult:: nodeId () const

Returns the node id of the write result.

另请参阅 setNodeId ().

void QOpcUaWriteResult:: setAttribute ( QOpcUa::NodeAttribute 属性 )

Sets the attribute of the write result to 属性 .

另请参阅 属性 ().

void QOpcUaWriteResult:: setIndexRange (const QString & indexRange )

Sets the index range of the write result to indexRange .

另请参阅 indexRange ().

void QOpcUaWriteResult:: setNodeId (const QString & nodeId )

Sets the node id of the write result to nodeId .

另请参阅 nodeId ().

void QOpcUaWriteResult:: setStatusCode ( QOpcUa::UaStatusCode statusCode )

Sets the status code of the write result to statusCode .

另请参阅 statusCode ().

QOpcUa::UaStatusCode QOpcUaWriteResult:: statusCode () const

Returns the status code of the write result.

另请参阅 setStatusCode ().