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()
기본값은 매개변수 설정 없이 쓰기 결과를 구성합니다.
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 의 값을 설정합니다.
© 2025 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.