QOpcUaDeleteReferenceItem Class

该类存储从服务器删除引用所需的信息。更多

Header: #include <QOpcUaDeleteReferenceItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共函数

QOpcUaDeleteReferenceItem()
QOpcUaDeleteReferenceItem(const QOpcUaDeleteReferenceItem &other)
bool deleteBidirectional() const
bool isForwardReference() const
QString referenceTypeId() const
void setDeleteBidirectional(bool deleteBidirectional)
void setIsForwardReference(bool isForwardReference)
void setReferenceTypeId(const QString &referenceTypeId)
void setSourceNodeId(const QString &sourceNodeId)
void setTargetNodeId(const QOpcUaExpandedNodeId &targetNodeId)
QString sourceNodeId() const
QOpcUaExpandedNodeId targetNodeId() const
QOpcUaDeleteReferenceItem &operator=(const QOpcUaDeleteReferenceItem &rhs)

详细说明

另请参见 QOpcUaClient::deleteReference().

成员函数文档

QOpcUaDeleteReferenceItem::QOpcUaDeleteReferenceItem()

默认构造一个删除引用项,不设置任何参数。

QOpcUaDeleteReferenceItem::QOpcUaDeleteReferenceItem(const QOpcUaDeleteReferenceItem &other)

other 中构造一个删除引用项。

bool QOpcUaDeleteReferenceItem::deleteBidirectional() const

返回 deleteBidirectional 标志。

另请参见 setDeleteBidirectional().

bool QOpcUaDeleteReferenceItem::isForwardReference() const

返回 isForwardReference 标志。

另请参阅 setIsForwardReference()。

QString QOpcUaDeleteReferenceItem::referenceTypeId() const

返回引用类型 ID。

另请参见 setReferenceTypeId()。

void QOpcUaDeleteReferenceItem::setDeleteBidirectional(bool deleteBidirectional)

deleteBidirectional 标志设置为deleteBidirectional 。如果该标志为 false,则只删除该引用。否则,如果服务器可以访问,目标节点的相反引用也会被删除。

另请参见 deleteBidirectional().

void QOpcUaDeleteReferenceItem::setIsForwardReference(bool isForwardReference)

isForwardReference 标志设置为isForwardReference

另请参阅 isForwardReference() 。

void QOpcUaDeleteReferenceItem::setReferenceTypeId(const QString &referenceTypeId)

将引用类型 id 设置为referenceTypeId

另请参阅 referenceTypeId() 。

void QOpcUaDeleteReferenceItem::setSourceNodeId(const QString &sourceNodeId)

将源节点的节点 ID 设置为sourceNodeId

另请参阅 sourceNodeId() 。

void QOpcUaDeleteReferenceItem::setTargetNodeId(const QOpcUaExpandedNodeId &targetNodeId)

将目标节点的节点 ID 设置为targetNodeId

另请参阅 targetNodeId() 。

QString QOpcUaDeleteReferenceItem::sourceNodeId() const

返回源节点 ID。

另请参见 setSourceNodeId()。

QOpcUaExpandedNodeId QOpcUaDeleteReferenceItem::targetNodeId() const

返回目标节点 ID。

另请参阅 setTargetNodeId()。

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

设置rhs 中的值。

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