QOpcUaReadResult Class
이 클래스는 읽기 작업의 결과를 저장합니다. 더 보기...
Header: | #include <QOpcUaReadResult> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
공용 함수
QOpcUaReadResult() | |
QOpcUaReadResult(const QOpcUaReadResult &other) | |
QOpcUa::NodeAttribute | attribute() const |
QString | indexRange() const |
QString | nodeId() const |
QDateTime | serverTimestamp() const |
void | setAttribute(QOpcUa::NodeAttribute attribute) |
void | setIndexRange(const QString &indexRange) |
void | setNodeId(const QString &nodeId) |
void | setServerTimestamp(const QDateTime &serverTimestamp) |
void | setSourceTimestamp(const QDateTime &sourceTimestamp) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
void | setValue(const QVariant &value) |
QDateTime | sourceTimestamp() const |
QOpcUa::UaStatusCode | statusCode() const |
QVariant | value() const |
QOpcUaReadResult & | operator=(const QOpcUaReadResult &rhs) |
상세 설명
OPC UA 서버에서 읽기 작업을 수행하면 소스에서 값을 생성한 시점과 서버가 값을 가져온 시점을 설명하는 값과 타임스탬프를 반환합니다. 또한 값을 읽을 수 있는지 여부와 읽을 수 없는 경우 어떤 이유로 읽기에 실패했는지 설명하는 상태 코드도 반환합니다.
이 클래스에는 서버가 반환하는 데이터 외에도 클라이언트가 요청과 결과를 일치시킬 수 있도록 요청의 노드 ID, 속성 및 인덱스 범위도 포함됩니다.
이 클래스의 객체는 QOpcUaClient::readNodeAttributesFinished() 신호로 반환되며 QOpcUaClient::readNodeAttributes() 요청의 일부인 읽기 작업의 결과를 포함합니다.
QOpcUaClient::readNodeAttributes(), QOpcUaClient::readNodeAttributesFinished() 및 QOpcUaReadItem 를참조하세요 .
멤버 함수 문서
QOpcUaReadResult::QOpcUaReadResult()
기본값은 매개변수 설정 없이 읽기 결과를 구성합니다.
QOpcUaReadResult::QOpcUaReadResult(const QOpcUaReadResult &other)
other 에서 읽기 결과를 구성합니다.
QOpcUa::NodeAttribute QOpcUaReadResult::attribute() const
속성 ID를 반환합니다.
setAttribute()도 참조하세요 .
QString QOpcUaReadResult::indexRange() const
인덱스 범위를 반환합니다.
setIndexRange()도 참조하세요 .
QString QOpcUaReadResult::nodeId() const
노드 ID를 반환합니다.
setNodeId()도 참조하세요 .
QDateTime QOpcUaReadResult::serverTimestamp() const
value()에 대한 서버 타임스탬프를 반환합니다.
setServerTimestamp()도 참조하세요 .
void QOpcUaReadResult::setAttribute(QOpcUa::NodeAttribute attribute)
속성 ID를 attribute 로 설정합니다.
attribute()도 참조하세요 .
void QOpcUaReadResult::setIndexRange(const QString &indexRange)
인덱스 범위를 indexRange 로 설정합니다.
indexRange()도 참조하세요 .
void QOpcUaReadResult::setNodeId(const QString &nodeId)
노드 아이디를 nodeId 로 설정합니다.
nodeId()도 참조하세요 .
void QOpcUaReadResult::setServerTimestamp(const QDateTime &serverTimestamp)
서버 타임스탬프를 serverTimestamp 로 설정합니다.
serverTimestamp()도 참조하세요 .
void QOpcUaReadResult::setSourceTimestamp(const QDateTime &sourceTimestamp)
소스 타임스탬프를 sourceTimestamp 로 설정합니다.
sourceTimestamp()도 참조하세요 .
void QOpcUaReadResult::setStatusCode(QOpcUa::UaStatusCode statusCode)
상태 코드를 statusCode 로 설정합니다.
statusCode()도 참조하세요 .
void QOpcUaReadResult::setValue(const QVariant &value)
값을 value 로 설정합니다.
value()도 참조하세요 .
QDateTime QOpcUaReadResult::sourceTimestamp() const
value()의 소스 타임스탬프를 반환합니다.
setSourceTimestamp()도 참조하세요 .
QOpcUa::UaStatusCode QOpcUaReadResult::statusCode() const
이 요소의 상태 코드를 반환합니다. 상태 코드가 Good 이 아닌 경우 값과 타임스탬프가 유효하지 않습니다.
setStatusCode()도 참조하세요 .
QVariant QOpcUaReadResult::value() const
값을 반환합니다.
setValue()도 참조하세요 .
QOpcUaReadResult &QOpcUaReadResult::operator=(const QOpcUaReadResult &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.