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

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

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

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

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

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

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

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