QOpcUaHistoryReadResponse Class
이 클래스는 기록 데이터를 요청하고 결과를 저장하는 데 사용됩니다. 더 보기...
Header: | #include <QOpcUaHistoryReadResponse> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
이후: | Qt 6.3 |
상속합니다: | QObject |
공용 형
enum class | State { Unknown, Reading, Finished, MoreDataAvailable, Error } |
공용 함수
virtual | ~QOpcUaHistoryReadResponse() |
QList<QOpcUaHistoryData> | data() const |
(since 6.7) QList<QOpcUaHistoryEvent> | events() const |
bool | hasMoreData() const |
bool | readMoreData() |
bool | releaseContinuationPoints() |
QOpcUa::UaStatusCode | serviceResult() const |
QOpcUaHistoryReadResponse::State | state() const |
시그널
void | readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult) |
(since 6.7) void | readHistoryEventsFinished(const QList<QOpcUaHistoryEvent> &results, QOpcUa::UaStatusCode serviceResult) |
void | stateChanged(QOpcUaHistoryReadResponse::State state) |
상세 설명
OPC UA 서버에 대한 히스토리 데이터 요청은 QOpcUaHistoryReadRawRequest 또는 QOpcUaHistoryReadEventRequest 으로 지정할 수 있습니다.
이 클래스의 객체와 요청의 상태코드는 요청 유형에 따라 QOpcUaHistoryReadResponse::readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult) 또는 QOpcUaHistoryReadResponse::readHistoryEventsFinished(const QList<QOpcUaHistoryEvent> &results, QOpcUa::UaStatusCode serviceResult) 신호로 반환되며 요청의 결과를 포함합니다.
멤버 유형 문서
enum class QOpcUaHistoryReadResponse::State
이 열거형은 응답의 상태를 지정합니다.
Constant | 값 |
---|---|
QOpcUaHistoryReadResponse::State::Unknown | 0 |
QOpcUaHistoryReadResponse::State::Reading | 1 |
QOpcUaHistoryReadResponse::State::Finished | 2 |
QOpcUaHistoryReadResponse::State::MoreDataAvailable | 3 |
QOpcUaHistoryReadResponse::State::Error | 4 |
멤버 함수 문서
[virtual noexcept]
QOpcUaHistoryReadResponse::~QOpcUaHistoryReadResponse()
의 소멸자 QOpcUaHistoryReadResponse
QList<QOpcUaHistoryData> QOpcUaHistoryReadResponse::data() const
요청된 기록 데이터가 포함된 목록을 반환합니다.
[since 6.7]
QList<QOpcUaHistoryEvent> QOpcUaHistoryReadResponse::events() const
요청에서 읽을 모든 노드의 이벤트 목록이 포함된 QOpcUaHistoryEvent 목록을 반환합니다.
이 함수는 Qt 6.7에 도입되었습니다.
bool QOpcUaHistoryReadResponse::hasMoreData() const
기록 데이터 요청에서 더 많은 값을 사용할 수 있는 경우 true
을 반환합니다.
[signal]
void QOpcUaHistoryReadResponse::readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult)
이 신호는 기록 데이터 요청이 완료되면 전송됩니다. results 에 추가하고 serviceResult 을 설정하여 결과의 상태를 나타냅니다.
data() 및 serviceResult()도 참조하세요 .
[signal, since 6.7]
void QOpcUaHistoryReadResponse::readHistoryEventsFinished(const QList<QOpcUaHistoryEvent> &results, QOpcUa::UaStatusCode serviceResult)
이 신호는 기록 이벤트 요청이 완료되면 발신됩니다. 새 기록 데이터와 이전 데이터는 results 에 반환되며 serviceResult 은 결과의 상태를 나타냅니다.
이 함수는 Qt 6.7에 도입되었습니다.
events() 및 serviceResult()도 참조하세요 .
bool QOpcUaHistoryReadResponse::readMoreData()
더 많은 기록 값에 대한 읽기 요청이 성공적으로 전송되면 true
을 반환합니다.
bool QOpcUaHistoryReadResponse::releaseContinuationPoints()
계속 지점을 해제하고 요청을 완료된 것으로 설정합니다. 보류 중인 요청이 성공적으로 완료되면 true
을 반환하고, 그렇지 않으면 false를 반환합니다.
QOpcUa::UaStatusCode QOpcUaHistoryReadResponse::serviceResult() const
기록 데이터 요청의 서비스 결과를 반환합니다.
QOpcUaHistoryReadResponse::State QOpcUaHistoryReadResponse::state() const
기록 데이터 요청의 현재 상태를 반환합니다.
[signal]
void QOpcUaHistoryReadResponse::stateChanged(QOpcUaHistoryReadResponse::State state)
이 신호는 기록 데이터 요청이 변경될 때 전송됩니다. state 을 설정하여 변경 상태를 나타냅니다.
© 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.