QOpcUaHistoryData Class
이 클래스는 노드의 기록 데이터 값을 저장합니다. 더 보기...
Header: | #include <QOpcUaHistoryData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
이후: | Qt 6.3 |
공용 함수
QOpcUaHistoryData() | |
QOpcUaHistoryData(const QString &nodeId) | |
QOpcUaHistoryData(const QOpcUaHistoryData &other) | |
~QOpcUaHistoryData() | |
void | addValue(const QOpcUaDataValue &value) |
int | count() const |
QString | nodeId() const |
QList<QOpcUaDataValue> | result() const |
void | setNodeId(const QString &nodeId) |
void | setStatusCode(QOpcUa::UaStatusCode statusCode) |
QOpcUa::UaStatusCode | statusCode() const |
void | swap(QOpcUaHistoryData &other) |
QOpcUaHistoryData & | operator=(const QOpcUaHistoryData &other) |
자세한 설명
히스토리 데이터 읽기 요청이 처리될 때, 이 클래스의 인스턴스는 읽은 노드, 그 값 및 상태 코드에 대한 정보를 저장하는 데 사용됩니다. 히스토리 읽기 요청의 완료 신호는 요청 결과를 검토하기 위해 파싱할 수 있는 QOpcUaHistoryData 객체 목록을 반환합니다.
멤버 함수 문서
QOpcUaHistoryData::QOpcUaHistoryData()
유효하지 않은 기록 데이터 항목을 생성합니다.
[explicit]
QOpcUaHistoryData::QOpcUaHistoryData(const QString &nodeId)
기록 데이터 항목을 구성하고 해당 노드에 해당하는 항목을 저장합니다.
QOpcUaHistoryData::QOpcUaHistoryData(const QOpcUaHistoryData &other)
other 에서 히스토리 데이터 항목을 구성합니다.
[noexcept]
QOpcUaHistoryData::~QOpcUaHistoryData()
기록 데이터 항목을 삭제합니다.
void QOpcUaHistoryData::addValue(const QOpcUaDataValue &value)
value 에서 지정한 데이터 값 객체를 추가합니다.
int QOpcUaHistoryData::count() const
사용 가능한 데이터 값 객체의 수를 반환합니다.
QString QOpcUaHistoryData::nodeId() const
데이터가 저장된 노드의 nodeId를 반환합니다.
setNodeId()도 참조하세요 .
QList<QOpcUaDataValue> QOpcUaHistoryData::result() const
기록 읽기 요청의 결과가 포함된 데이터 값 객체 목록을 반환합니다.
void QOpcUaHistoryData::setNodeId(const QString &nodeId)
nodeId 을 nodeId 으로 설정합니다.
nodeId()도 참조하세요 .
void QOpcUaHistoryData::setStatusCode(QOpcUa::UaStatusCode statusCode)
상태 코드를 statusCode 로 설정합니다.
statusCode()도 참조하세요 .
QOpcUa::UaStatusCode QOpcUaHistoryData::statusCode() const
기록 데이터를 가져오는 동안 오류가 발생했는지 여부를 나타내는 상태 코드를 반환합니다.
setStatusCode()도 참조하세요 .
[noexcept]
void QOpcUaHistoryData::swap(QOpcUaHistoryData &other)
이 데이터 값 인스턴스를 other 로 바꿉니다. 이 함수는 매우 빠르며 실패하지 않습니다.
QOpcUaHistoryData &QOpcUaHistoryData::operator=(const QOpcUaHistoryData &other)
이 기록 데이터 항목의 other 값을 설정합니다.
© 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.