QOpcUaBrowsePathTarget Class
OPC UA 的 BrowsePathTarget。更多内容...
| 标题: | #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 |
成员函数文档
QOpcUaBrowsePathTarget::QOpcUaBrowsePathTarget()
默认情况下会构建一个未设置任何参数的浏览路径目标。
QOpcUaBrowsePathTarget::QOpcUaBrowsePathTarget(const QOpcUaBrowsePathTarget &rhs)
根据rhs 构建一个浏览路径目标。
bool QOpcUaBrowsePathTarget::isFullyResolved() const
如果浏览路径已完全解析,则返回true 。
quint32 QOpcUaBrowsePathTarget::remainingPathIndex() const
返回浏览路径中第一个未处理元素的索引。如果已遍历到路径末尾,则 remainingPathIndex 的最大值为 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 。
© 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.