QOpcUaHistoryEvent Class
이 클래스는 노드의 기록 이벤트를 저장합니다. 더 보기...
헤더: | #include <QOpcUaHistoryEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
이후: | Qt 6.7 |
공용 함수
QOpcUaHistoryEvent() | |
QOpcUaHistoryEvent(const QString &nodeId) | |
QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other) | |
QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other) | |
~QOpcUaHistoryEvent() | |
void | addEvent(const QVariantList &value) |
int | count() const |
QList<QVariantList> | events() const |
QString | nodeId() const |
void | setNodeId(const QString &nodeId) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaHistoryEvent &other) |
QOpcUaHistoryEvent & | operator=(QOpcUaHistoryEvent &&other) |
QOpcUaHistoryEvent & | operator=(const QOpcUaHistoryEvent &other) |
관련 비회원
bool | operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
bool | operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs) |
상세 설명
히스토리 이벤트 읽기 요청이 처리될 때, 이 클래스의 인스턴스는 읽은 노드, 이벤트 및 상태 코드에 대한 정보를 저장하는 데 사용됩니다. 히스토리 읽기 응답의 완료 신호는 요청의 결과를 검토하기 위해 파싱할 수 있는 QOpcUaHistoryEvent 객체 목록을 반환합니다.
멤버 함수 문서
QOpcUaHistoryEvent::QOpcUaHistoryEvent()
유효하지 않은 기록 이벤트 항목을 생성합니다.
[explicit]
QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QString &nodeId)
히스토리 이벤트 항목을 구성하고 해당 이벤트가 해당하는 노드를 저장합니다.
QOpcUaHistoryEvent::QOpcUaHistoryEvent(const QOpcUaHistoryEvent &other)
other 에서 히스토리 이벤트 항목을 생성합니다.
[noexcept]
QOpcUaHistoryEvent::QOpcUaHistoryEvent(QOpcUaHistoryEvent &&other)
Move - other 에서 새 히스토리 이벤트 객체를 만듭니다.
참고: 이동한 개체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 파괴와 새 값 할당뿐입니다.
[noexcept]
QOpcUaHistoryEvent::~QOpcUaHistoryEvent()
기록 이벤트 항목을 삭제합니다.
void QOpcUaHistoryEvent::addEvent(const QVariantList &value)
value 에서 제공한 이벤트 필드 목록을 추가합니다.
int QOpcUaHistoryEvent::count() const
사용 가능한 이벤트 수를 반환합니다.
QList<QVariantList> QOpcUaHistoryEvent::events() const
기록 읽기 요청의 결과가 포함된 QVariantList 객체 목록을 반환합니다.
QString QOpcUaHistoryEvent::nodeId() const
이벤트가 저장된 노드의 nodeId를 반환합니다.
setNodeId()도 참조하세요 .
void QOpcUaHistoryEvent::setNodeId(const QString &nodeId)
nodeId 을 nodeId 으로 설정합니다.
nodeId()도 참조하세요 .
void QOpcUaHistoryEvent::setStatusCode(QOpcUa::UaStatusCode statusCode)
상태 코드를 statusCode 로 설정합니다.
statusCode()도 참조하세요 .
QOpcUa::UaStatusCode QOpcUaHistoryEvent::statusCode() const
기록 이벤트를 가져오는 동안 오류가 발생했는지 여부를 나타내는 상태 코드를 반환합니다.
setStatusCode()도 참조하세요 .
[noexcept]
void QOpcUaHistoryEvent::swap(QOpcUaHistoryEvent &other)
히스토리 이벤트 객체 other 를 이 히스토리 이벤트 객체로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.
[noexcept]
QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(QOpcUaHistoryEvent &&other)
이동 - other 을 이 QOpcUaHistoryEvent 인스턴스에 할당합니다.
참고: 이동된 other 객체는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 소멸과 새 값 할당뿐입니다.
QOpcUaHistoryEvent &QOpcUaHistoryEvent::operator=(const QOpcUaHistoryEvent &other)
이 기록 이벤트 항목에서 other 의 값을 설정합니다.
관련 비회원
[noexcept]
bool operator!=(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
lhs 이 rhs 과 같지 않으면 true
을 반환합니다 .
[noexcept]
bool operator==(const QOpcUaHistoryEvent &lhs, const QOpcUaHistoryEvent &rhs)
rhs 및 lhs 에 동일한 값이 포함된 경우 true
를 반환합니다.
© 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.