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 표현입니다.

서버에서 기록 데이터를 요청할 때 수집할 데이터를 알기 위해 서버에 몇 가지 값을 제공해야 합니다. startTimestampendTimestamp 은 기록 이벤트를 수집할 시간 범위를 정의합니다. 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 항목을 생성합니다.

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

Move - 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)

lhsrhs 과 같지 않으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

두 개의 QOpcUaHistoryReadEventRequest 항목이 startTimestamp, endTimestamp, numValuesPerNode, filter 또는 nodesToRead 이 같지 않은 경우 같지 않은 것으로 간주합니다.

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

lhsrhs 과 같으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

startTimestamp, endTimestamp, numValuesPerNode, filternodesToRead 이 같으면 두 개의 QOpcUaHistoryReadEventRequest 항목이 동일한 것으로 간주됩니다.

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