이 페이지에서

QOpcUaReadItem Class

이 클래스는 읽기 작업에 대한 옵션을 저장합니다. 더 보기...

헤더: #include <QOpcUaReadItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

공개 함수

QOpcUaReadItem()
QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())
QOpcUaReadItem(const QOpcUaReadItem &other)
QOpcUa::NodeAttribute attribute() const
QString indexRange() const
QString nodeId() const
void setAttribute(QOpcUa::NodeAttribute attribute)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
QOpcUaReadItem &operator=(const QOpcUaReadItem &rhs)
bool operator!=(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)
bool operator==(const QOpcUaReadItem &lhs, const QOpcUaReadItem &rhs)

상세 설명

OPC UA 서버에 대한 읽기 작업은 서버 상의 노드 속성 값 전체 또는 특정 인덱스 범위의 값을 반환합니다. 이 클래스에는 백엔드가 서버에 읽기 요청을 수행하는 데 필요한 정보가 포함되어 있습니다.

이 클래스의 하나 또는 여러 개 객체가 QOpcUaClient::readNodeAttributes() 연산의 요청을 구성합니다.

QOpcUaClient::readNodeAttributes() 및 QOpcUaReadResult도 참조하십시오 .

멤버 함수 문서

QOpcUaReadItem::QOpcUaReadItem()

default는 매개변수가 설정되지 않은 읽기 항목을 생성합니다.

QOpcUaReadItem::QOpcUaReadItem(const QString &nodeId, QOpcUa::NodeAttribute attr = QOpcUa::NodeAttribute::Value, const QString &indexRange = QString())

노드 nodeId 의 속성 attr 에 대해 인덱스 범위 indexRange 에 해당하는 읽기 항목을 생성합니다.

QOpcUaReadItem::QOpcUaReadItem(const QOpcUaReadItem &other)

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

QOpcUa::NodeAttribute QOpcUaReadItem::attribute() const

노드 속성 id를 반환합니다.

setAttribute()도 참조하십시오 .

QString QOpcUaReadItem::indexRange() const

인덱스 범위를 반환합니다.

setIndexRange()도 참조하십시오 .

QString QOpcUaReadItem::nodeId() const

노드 ID를 반환합니다.

setNodeId()도 참조하십시오 .

void QOpcUaReadItem::setAttribute(QOpcUa::NodeAttribute attribute)

노드 속성 id를 attribute 로 설정합니다.

attribute()도 참조하십시오 .

void QOpcUaReadItem::setIndexRange(const QString &indexRange)

인덱스 범위를 indexRange 로 설정합니다.

indexRange()도 참조하십시오 .

void QOpcUaReadItem::setNodeId(const QString &nodeId)

노드 ID를 nodeId 로 설정합니다.

nodeId()도 참조하십시오 .

QOpcUaReadItem &QOpcUaReadItem::operator=(const QOpcUaReadItem &rhs)

이 읽기 항목에 rhs 의 값을 설정합니다.

관련 비회원

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

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

두 개의 읽기 항목은 nodeId, attribute 또는 indexRange 가 서로 다를 경우 서로 다른 것으로 간주됩니다.

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

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

두 읽기 항목은 nodeId, attribute 및 indexRange 가 모두 같을 때 동일하다고 간주됩니다.

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