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 的值:
属性 |
---|
节点 ID |
浏览名称 |
显示名称 |
节点类 |
成员函数文档
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 设置为类型定义的 id。
另请参见 typeDefinition()。
QOpcUaExpandedNodeId QOpcUaReferenceDescription::targetNodeId() const
返回节点的节点 ID。
另请参阅 setTargetNodeId()。
QOpcUaExpandedNodeId QOpcUaReferenceDescription::typeDefinition() const
返回类型定义 id。
另请参见 setTypeDefinition()。
QOpcUaReferenceDescription &QOpcUaReferenceDescription::operator=(const QOpcUaReferenceDescription &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.