QOpcUaBrowsePathTarget Class

OPC UA 浏览路径目标。更多

头文件: #include <QOpcUaBrowsePathTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共函数

QOpcUaBrowsePathTarget()
QOpcUaBrowsePathTarget(const QOpcUaBrowsePathTarget &rhs)
bool isFullyResolved() const
quint32 remainingPathIndex() const
void setRemainingPathIndex(quint32 remainingPathIndex)
void setTargetId(const QOpcUaExpandedNodeId &targetId)
QOpcUaExpandedNodeId targetId() const
QOpcUaExpandedNodeId &targetIdRef()
QOpcUaBrowsePathTarget &operator=(const QOpcUaBrowsePathTarget &rhs)
bool operator==(const QOpcUaBrowsePathTarget &rhs) const

详细说明

浏览路径目标(BrowsePathTarget)包含浏览路径的目标和节点 id 解析的完整性信息。

成员函数文档

QOpcUaBrowsePathTarget::QOpcUaBrowsePathTarget()

默认构建一个浏览路径目标,不设置任何参数。

QOpcUaBrowsePathTarget::QOpcUaBrowsePathTarget(const QOpcUaBrowsePathTarget &rhs)

rhs 构建浏览路径目标。

bool QOpcUaBrowsePathTarget::isFullyResolved() const

如果浏览路径已完全解析,则返回true

quint32 QOpcUaBrowsePathTarget::remainingPathIndex() const

返回浏览路径中第一个未处理元素的索引。如果浏览路径被跟踪到底,remainPathIndex 的最大值为 quint32。

另请参阅 setRemainingPathIndex() 和QOpcUaBrowsePathTarget::targetId()。

void QOpcUaBrowsePathTarget::setRemainingPathIndex(quint32 remainingPathIndex)

将剩余路径索引设置为remainingPathIndex

另请参阅 remainingPathIndex() 。

void QOpcUaBrowsePathTarget::setTargetId(const QOpcUaExpandedNodeId &targetId)

将目标节点的节点 id 设为targetId

另请参阅 targetId() 。

QOpcUaExpandedNodeId QOpcUaBrowsePathTarget::targetId() const

返回服务器能够跟踪的最后一个引用的目标。如果引用指向外部服务器,targetId就是该服务器上第一个节点的 id。

另请参阅 setTargetId() 和QOpcUaBrowsePathTarget::remainingPathIndex

QOpcUaExpandedNodeId &QOpcUaBrowsePathTarget::targetIdRef()

返回目标 ID 的引用。

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

在此浏览路径目标中设置rhs 的值。

bool QOpcUaBrowsePathTarget::operator==(const QOpcUaBrowsePathTarget &rhs) const

如果此浏览路径目标值与rhs 相同,则返回true

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