이 페이지에서

QOpcUaHistoryReadRawRequest Class

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

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

공개 함수

QOpcUaHistoryReadRawRequest()
(since 6.7) QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn)
QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false)
QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other)
~QOpcUaHistoryReadRawRequest()
void addNodeToRead(const QOpcUaReadItem &nodeToRead)
QDateTime endTimestamp() const
QList<QOpcUaReadItem> nodesToRead() const
quint32 numValuesPerNode() const
bool returnBounds() const
void setEndTimestamp(const QDateTime &endTimestamp)
void setNodesToRead(const QList<QOpcUaReadItem> &nodesToRead)
void setNumValuesPerNode(quint32 numValuesPerNode)
void setReturnBounds(bool returnBounds)
void setStartTimestamp(const QDateTime &startTimestamp)
(since 6.7) void setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)
QDateTime startTimestamp() const
void swap(QOpcUaHistoryReadRawRequest &other)
(since 6.7) QOpcUa::TimestampsToReturn timestampsToReturn() const
QOpcUaHistoryReadRawRequest &operator=(const QOpcUaHistoryReadRawRequest &other)
bool operator!=(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)
bool operator==(const QOpcUaHistoryReadRawRequest &lhs, const QOpcUaHistoryReadRawRequest &rhs)

상세 설명

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

서버에 이력 데이터를 요청할 때, 수집할 데이터를 파악하기 위해 서버에 몇 가지 값을 제공해야 합니다. QOpcUaHistoryReadRawRequest 클래스는 필요한 값들을 제공합니다. startTimestamp 및 endTimestamp 는 과거 데이터를 수집할 시간 범위를 정의합니다. nodesToRead 는 과거 데이터를 수집할 노드를 정의합니다. numValuesPerNode 는 노드당 반환될 데이터 값의 최대 수를 정의합니다. returnBounds 는 경계 값을 결과에 포함할지 여부를 정의합니다.

멤버 함수 문서

QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest()

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

[explicit, since 6.7] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, QOpcUa::TimestampsToReturn timestampsToReturn)

지정된 값을 사용하여 QOpcUaHistoryReadRawRequest 항목을 생성합니다. ` timestampsToReturn ` 매개변수는 각 값에 대해 반환할 타임스탬프를 결정합니다.

이 함수는 Qt 6.7에서 도입되었습니다.

[explicit] QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QList<QOpcUaReadItem> &nodesToRead, const QDateTime &startTimestamp, const QDateTime &endTimestamp, quint32 numValuesPerNode = 0, bool returnBounds = false)

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

QOpcUaHistoryReadRawRequest::QOpcUaHistoryReadRawRequest(const QOpcUaHistoryReadRawRequest &other)

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

[noexcept] QOpcUaHistoryReadRawRequest::~QOpcUaHistoryReadRawRequest()

요청 객체를 삭제합니다.

void QOpcUaHistoryReadRawRequest::addNodeToRead(const QOpcUaReadItem &nodeToRead)

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

QDateTime QOpcUaHistoryReadRawRequest::endTimestamp() const

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

setEndTimestamp()도 참조하십시오 .

QList<QOpcUaReadItem> QOpcUaHistoryReadRawRequest::nodesToRead() const

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

setNodesToRead()도 참조하십시오 .

quint32 QOpcUaHistoryReadRawRequest::numValuesPerNode() const

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

setNumValuesPerNode()도 참조하십시오 .

bool QOpcUaHistoryReadRawRequest::returnBounds() const

반환 범위를 요청해야 하는지 여부를 반환합니다.

setReturnBounds()도 참조하십시오 .

void QOpcUaHistoryReadRawRequest::setEndTimestamp(const QDateTime &endTimestamp)

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

endTimestamp()도 참조하십시오 .

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

nodesToRead 목록을 설정합니다.

nodesToRead()도 참조하십시오 .

void QOpcUaHistoryReadRawRequest::setNumValuesPerNode(quint32 numValuesPerNode)

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

numValuesPerNode()도 참조하십시오 .

void QOpcUaHistoryReadRawRequest::setReturnBounds(bool returnBounds)

returnBounds 를 설정하여 반환 범위를 요청할지 여부를 지정합니다.

returnBounds()도 참조하십시오 .

void QOpcUaHistoryReadRawRequest::setStartTimestamp(const QDateTime &startTimestamp)

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

startTimestamp()도 참조하십시오 .

[since 6.7] void QOpcUaHistoryReadRawRequest::setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn)

각 값에 대해 반환할 선택된 타임스탬프를 ` timestampsToReturn`로 설정합니다.

이 함수는 Qt 6.7에서 도입되었습니다.

timestampsToReturn()도 참조하십시오 .

QDateTime QOpcUaHistoryReadRawRequest::startTimestamp() const

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

setStartTimestamp()도 참조하십시오 .

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

이 요청 인스턴스를 other 로 교체합니다. 이 함수는 매우 빠르며 절대 실패하지 않습니다.

[since 6.7] QOpcUa::TimestampsToReturn QOpcUaHistoryReadRawRequest::timestampsToReturn() const

각 값에 대해 반환할 선택된 타임스탬프를 반환합니다.

이 함수는 Qt 6.7에서 도입되었습니다.

setTimestampsToReturn()도 참조하십시오 .

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

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

관련 비회원

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

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

두 QOpcUaHistoryReadRawRequest 항목은 startTimestamp, endTimestamp, numValuesPerNode, returnBounds 또는 nodesToRead 중 하나라도 서로 다를 경우 서로 다른 것으로 간주됩니다.

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

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

두 개의 QOpcUaHistoryReadRawRequest 항목은 startTimestamp, endTimestamp, numValuesPerNode, returnBounds 및 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.