QOpcUaWriteResult Class
이 클래스는 쓰기 작업의 결과를 저장합니다. 더 보기...
| 헤더: | #include <QOpcUaWriteResult> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
공개 함수
| QOpcUaWriteResult() | |
| QOpcUaWriteResult(const QOpcUaWriteResult &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) |
| void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
| QOpcUa::UaStatusCode | statusCode() const |
| QOpcUaWriteResult & | operator=(const QOpcUaWriteResult &rhs) |
상세 설명
OPC UA 서버에 대한 쓰기 작업은 값을 쓸 수 있었는지, 쓸 수 없었다면 쓰기가 실패한 이유가 무엇인지 설명하는 상태 코드를 반환합니다.
서버에서 반환된 상태 코드 외에도, 이 클래스에는 클라이언트가 결과를 요청과 대조할 수 있도록 요청의 노드 ID, 속성 및 인덱스 범위가 포함되어 있습니다.
이 클래스의 객체는 QOpcUaClient::writeNodeAttributesFinished() 신호로 반환되며, QOpcUaClient::writeNodeAttributes() 요청의 일부였던 쓰기 작업의 결과를 포함합니다.
QOpcUaClient::writeNodeAttributes(), QOpcUaClient::writeNodeAttributesFinished() 및 QOpcUaWriteItem도 참조하십시오 .
멤버 함수 문서
QOpcUaWriteResult::QOpcUaWriteResult()
Default는 매개변수가 설정되지 않은 쓰기 결과를 생성합니다.
QOpcUaWriteResult::QOpcUaWriteResult(const QOpcUaWriteResult &other)
other 에서 쓰기 결과를 생성합니다.
QOpcUa::NodeAttribute QOpcUaWriteResult::attribute() const
쓰기 결과의 속성을 반환합니다.
setAttribute()도 참조하십시오 .
QString QOpcUaWriteResult::indexRange() const
쓰기 결과의 인덱스 범위를 반환합니다.
setIndexRange()도 참조하십시오 .
QString QOpcUaWriteResult::nodeId() const
쓰기 결과의 노드 ID를 반환합니다.
setNodeId()도 참조하십시오 .
void QOpcUaWriteResult::setAttribute(QOpcUa::NodeAttribute attribute)
쓰기 결과의 속성을 attribute 로 설정합니다.
attribute()도 참조하십시오 .
void QOpcUaWriteResult::setIndexRange(const QString &indexRange)
쓰기 결과의 인덱스 범위를 indexRange 로 설정합니다.
indexRange()도 참조하십시오 .
void QOpcUaWriteResult::setNodeId(const QString &nodeId)
쓰기 결과의 노드 ID를 nodeId 로 설정합니다.
nodeId()도 참조하십시오 .
void QOpcUaWriteResult::setStatusCode(QOpcUa::UaStatusCode statusCode)
쓰기 결과의 상태 코드를 statusCode 로 설정합니다.
statusCode()도 참조하십시오 .
QOpcUa::UaStatusCode QOpcUaWriteResult::statusCode() const
쓰기 결과의 상태 코드를 반환합니다.
setStatusCode()도 참조하십시오 .
QOpcUaWriteResult &QOpcUaWriteResult::operator=(const QOpcUaWriteResult &rhs)
이 쓰기 결과에 rhs 의 값을 설정합니다.
© 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.