QOpcUaReferenceDescription Class
包含有关某个节点的信息。更多内容...
| 标题: | #include <QOpcUaReferenceDescription> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共函数
| QOpcUaReferenceDescription() | |
| QOpcUaReferenceDescription(const QOpcUaReferenceDescription &other) | |
| ~QOpcUaReferenceDescription() | |
| QOpcUaQualifiedName | browseName() const |
| QOpcUaLocalizedText | displayName() const |
| bool | isForwardReference() const |
| QOpcUa::NodeClass | nodeClass() const |
| QString | refTypeId() const |
| void | setBrowseName(const QOpcUaQualifiedName &browseName) |
| void | setDisplayName(const QOpcUaLocalizedText &displayName) |
| void | setIsForwardReference(bool isForwardReference) |
| void | setNodeClass(QOpcUa::NodeClass nodeClass) |
| void | setRefTypeId(const QString &refTypeId) |
| void | setTargetNodeId(const QOpcUaExpandedNodeId &nodeId) |
| void | setTypeDefinition(const QOpcUaExpandedNodeId &typeDefinition) |
| QOpcUaExpandedNodeId | targetNodeId() const |
| QOpcUaExpandedNodeId | typeDefinition() const |
| QOpcUaReferenceDescription & | operator=(const QOpcUaReferenceDescription &other) |
详细说明
该类用于返回调用QOpcUaNode::browse()或QOpcUaNode::browseChildren()的结果。
它包含用于将该节点与浏览操作起始节点连接起来的引用类型和方向、目标类型定义节点的节点ID,以及以下node attributes 的值:
| 属性 |
|---|
| NodeId |
| 浏览名称 |
| 显示名称 |
| 节点类 |
成员函数文档
QOpcUaReferenceDescription::QOpcUaReferenceDescription()
创建一个空的 QOpcUaReferenceDescription 对象
QOpcUaReferenceDescription::QOpcUaReferenceDescription(const QOpcUaReferenceDescription &other)
创建 QOpcUaReferenceDescription 对象other 的副本。
[noexcept] QOpcUaReferenceDescription::~QOpcUaReferenceDescription()
的析构函数QOpcUaReferenceDescription
QOpcUaQualifiedName QOpcUaReferenceDescription::browseName() const
返回节点的浏览名称。
另请参阅 setBrowseName()。
QOpcUaLocalizedText QOpcUaReferenceDescription::displayName() const
返回节点的显示名称。
另请参阅 ` setDisplayName()`。
bool QOpcUaReferenceDescription::isForwardReference() const
如果引用是前向引用,则返回true 。
另请参阅 setIsForwardReference()。
QOpcUa::NodeClass QOpcUaReferenceDescription::nodeClass() const
返回节点的节点类。
另请参阅 ` setNodeClass()`。
QString QOpcUaReferenceDescription::refTypeId() const
返回节点的引用类型 ID。
另请参阅 setRefTypeId()。
void QOpcUaReferenceDescription::setBrowseName(const QOpcUaQualifiedName &browseName)
将节点的浏览名称设置为browseName 。
另请参阅 browseName()。
void QOpcUaReferenceDescription::setDisplayName(const QOpcUaLocalizedText &displayName)
将节点的显示名称设置为displayName 。
另请参阅 displayName()。
void QOpcUaReferenceDescription::setIsForwardReference(bool isForwardReference)
将isForwardReference 设置为该引用的isForwardReference 信息。
另请参阅 isForwardReference()。
void QOpcUaReferenceDescription::setNodeClass(QOpcUa::NodeClass nodeClass)
将节点的节点类设置为nodeClass 。
另请参阅 nodeClass()。
void QOpcUaReferenceDescription::setRefTypeId(const QString &refTypeId)
将节点的引用类型 ID 设置为refTypeId 。
另请参阅 refTypeId() 和QOpcUa::nodeIdFromReferenceType()。
void QOpcUaReferenceDescription::setTargetNodeId(const QOpcUaExpandedNodeId &nodeId)
将该节点的节点 ID 设置为nodeId 。
另请参阅 targetNodeId()。
void QOpcUaReferenceDescription::setTypeDefinition(const QOpcUaExpandedNodeId &typeDefinition)
将typeDefinition 设置为类型定义的标识符。
另请参阅 typeDefinition()。
QOpcUaExpandedNodeId QOpcUaReferenceDescription::targetNodeId() const
返回该节点的节点 ID。
另请参阅 setTargetNodeId()。
QOpcUaExpandedNodeId QOpcUaReferenceDescription::typeDefinition() const
返回类型定义的标识符。
另请参阅 setTypeDefinition()。
QOpcUaReferenceDescription &QOpcUaReferenceDescription::operator=(const QOpcUaReferenceDescription &other)
将other 的值赋给该对象。
© 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.