QOpcUaReadItem Class
이 클래스는 읽기 작업에 대한 옵션을 저장합니다. 더 보기...
Header: | #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()
기본값은 매개변수가 설정되지 않은 읽기 항목을 구성합니다.
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)
노드 아이디를 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
이 같으면 두 읽기 항목이 동일한 것으로 간주됩니다.
© 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.