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 | attribute () const |
| QString | indexRange () const |
| QString | nodeId () const |
| void | setAttribute (QOpcUa::NodeAttribute attribute ) |
| 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 .
Constructs a write result from other .
設置值從 rhs in this write result.
Returns the attribute of the write result.
另請參閱 setAttribute ().
Returns the index range of the write result.
另請參閱 setIndexRange ().
Returns the node id of the write result.
另請參閱 setNodeId ().
Sets the attribute of the write result to attribute .
另請參閱 attribute ().
Sets the index range of the write result to indexRange .
另請參閱 indexRange ().
Sets the node id of the write result to nodeId .
另請參閱 nodeId ().
Sets the status code of the write result to statusCode .
另請參閱 statusCode ().
Returns the status code of the write result.
另請參閱 setStatusCode ().