이 페이지에서

QOpcUaHistoryReadEventRequest Class

이 클래스는 서버에서 과거 데이터를 요청하는 데 필요한 정보를 저장합니다. 더 보기...

헤더: #include <QOpcUaHistoryReadEventRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
다음부터: Qt 6.7부터

공개 함수

QOpcUaHistoryReadEventRequest()
QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter)
QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other)
QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other)
~QOpcUaHistoryReadEventRequest()
void addNodeToRead(const QOpcUaReadItem &nodeToRead)
QDateTime endTimestamp() const
QOpcUaMonitoringParameters::EventFilter filter() const
QList<QOpcUaReadItem> nodesToRead() const
quint32 numValuesPerNode() const
void setEndTimestamp(const QDateTime &endTimestamp)
void setFilter(const QOpcUaMonitoringParameters::EventFilter &filter)
void setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
void setNumValuesPerNode(quint32 numValuesPerNode)
void setStartTimestamp(const QDateTime &startTimestamp)
QDateTime startTimestamp() const
void swap(QOpcUaHistoryReadEventRequest &other)
QOpcUaHistoryReadEventRequest &operator=(QOpcUaHistoryReadEventRequest &&other)
QOpcUaHistoryReadEventRequest &operator=(const QOpcUaHistoryReadEventRequest &other)
bool operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)
bool operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)

상세 설명

이는 OPC-UA 파트 11, 6.4.2에 정의된 이력 데이터를 읽기 위한 OPC UA ReadEventDetails에 대한 Qt OPC UA 표현입니다.

서버에 이력 데이터를 요청할 때, 수집할 데이터를 파악하기 위해 서버에 몇 가지 값을 제공해야 합니다. QOpcUaHistoryReadEventRequest 클래스는 필요한 값을 제공합니다. startTimestamp 및 endTimestamp 는 과거 이벤트를 수집할 시간 범위를 정의합니다. nodesToRead 는 과거 데이터를 수집할 노드를 정의합니다. numValuesPerNode 는 노드당 반환할 이벤트의 최대 개수를 정의합니다. filter 는 반환할 이벤트와 해당 필드를 결정하는 데 사용되는 이벤트 필터입니다.

멤버 함수 문서

QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest()

유효하지 않은 QOpcUaHistoryReadEventRequest 객체를 생성합니다.

[explicit] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, const QOpcUaMonitoringParameters::EventFilter &filter)

지정된 값을 사용하여 QOpcUaHistoryReadEventRequest 항목을 생성합니다.

QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(const QOpcUaHistoryReadEventRequest &other)

other 에서 QOpcUaHistoryReadEventRequest 항목을 생성합니다.

[constexpr noexcept default] QOpcUaHistoryReadEventRequest::QOpcUaHistoryReadEventRequest(QOpcUaHistoryReadEventRequest &&other)

other 에서 새로운 읽기 이벤트 요청 객체를 생성합니다.

참고: 이동된원본 객체 ` other `는 부분적으로 형성된 상태로 전환되며, 이 상태에서는 소멸 및 새 값 할당만이 유효한 연산입니다.

[noexcept] QOpcUaHistoryReadEventRequest::~QOpcUaHistoryReadEventRequest()

요청 객체를 삭제합니다.

void QOpcUaHistoryReadEventRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)

nodeToRead 목록에 노드를 추가합니다.

QDateTime QOpcUaHistoryReadEventRequest::endTimestamp() const

종료 타임스탬프를 반환합니다.

setEndTimestamp()도 참조하십시오 .

QOpcUaMonitoringParameters::EventFilter QOpcUaHistoryReadEventRequest::filter() const

과거 이벤트를 검색하는 데 사용되는 이벤트 필터를 반환합니다.

setFilter()도 참조하십시오 .

QList<QOpcUaReadItem> QOpcUaHistoryReadEventRequest::nodesToRead() const

읽을 노드 목록을 반환합니다.

setNodesToRead()도 참조하십시오 .

quint32 QOpcUaHistoryReadEventRequest::numValuesPerNode() const

노드당 값의 개수를 반환합니다.

setNumValuesPerNode()도 참조하십시오 .

void QOpcUaHistoryReadEventRequest::setEndTimestamp(const QDateTime &endTimestamp)

가져올 과거 데이터에 대한 endTimestamp 를 설정합니다.

endTimestamp()도 참조하십시오 .

void QOpcUaHistoryReadEventRequest::setFilter(const QOpcUaMonitoringParameters::EventFilter &filter)

이전 이벤트를 검색하는 데 사용되는 이벤트 필터를 ` filter`로 설정합니다.

filter()도 참조하십시오 .

void QOpcUaHistoryReadEventRequest::setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)

nodesToRead 목록을 설정합니다.

nodesToRead()도 참조하십시오 .

void QOpcUaHistoryReadEventRequest::setNumValuesPerNode(quint32 numValuesPerNode)

numValuesPerNode 를 설정하여 노드당 가져올 값의 개수를 지정합니다.

numValuesPerNode()도 참조하십시오 .

void QOpcUaHistoryReadEventRequest::setStartTimestamp(const QDateTime &startTimestamp)

가져올 과거 데이터에 대한 startTimestamp 값을 설정합니다.

startTimestamp()도 참조하십시오 .

QDateTime QOpcUaHistoryReadEventRequest::startTimestamp() const

시작 타임스탬프를 반환합니다.

setStartTimestamp()도 참조하십시오 .

[noexcept] void QOpcUaHistoryReadEventRequest::swap(QOpcUaHistoryReadEventRequest &other)

스왑은 이벤트 요청 객체 other 를 이 읽기 이벤트 요청 객체로 대체합니다. 이 작업은 매우 빠르며 절대 실패하지 않습니다.

[noexcept] QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(QOpcUaHistoryReadEventRequest &&other)

other 를 이 QOpcUaHistoryReadEventRequest 인스턴스에 이동-할당합니다.

참고: 이동된객체 other 는 부분적으로 형성된 상태가 되며, 이 상태에서는 소멸과 새 값 할당만이 유효한 연산입니다.

QOpcUaHistoryReadEventRequest &QOpcUaHistoryReadEventRequest::operator=(const QOpcUaHistoryReadEventRequest &other)

other 의 값을 이 QOpcUaHistoryReadEventRequest 항목에 설정합니다.

관련 비회원

[noexcept] bool operator!=(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)

lhs 가 rhs 와 같지 않은 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.

두 개의 QOpcUaHistoryReadEventRequest 항목은 startTimestamp, endTimestamp, numValuesPerNode, filter 또는 nodesToRead 가 서로 다를 경우 서로 다른 것으로 간주됩니다.

[noexcept] bool operator==(const QOpcUaHistoryReadEventRequest &lhs, const QOpcUaHistoryReadEventRequest &rhs)

lhs 가 rhs 와 같으면 true 를 반환하고, 그렇지 않으면 false 를 반환합니다.

두 개의 QOpcUaHistoryReadEventRequest 항목은 startTimestamp, endTimestamp, numValuesPerNode, filter 및 nodesToRead 가 모두 같을 때 동일하다고 간주됩니다.

© 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.