QOpcUaAddReferenceItem Class
This class stores the necessary information to add a new reference on the server. More...
Header: | #include <QOpcUaAddReferenceItem> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Public Functions
QOpcUaAddReferenceItem(const QOpcUaAddReferenceItem &other) | |
QOpcUaAddReferenceItem & | operator=(const QOpcUaAddReferenceItem &rhs) |
bool | isForwardReference() const |
QString | referenceTypeId() const |
void | setIsForwardReference(bool isForwardReference) |
void | setReferenceTypeId(const QString &referenceTypeId) |
void | setSourceNodeId(const QString &sourceNodeId) |
void | setTargetNodeClass(QOpcUa::NodeClass targetNodeClass) |
void | setTargetNodeId(const QOpcUaExpandedNodeId &targetNodeId) |
void | setTargetServerUri(const QString &targetServerUri) |
QString | sourceNodeId() const |
QOpcUa::NodeClass | targetNodeClass() const |
QOpcUaExpandedNodeId | targetNodeId() const |
QString | targetServerUri() const |
Detailed Description
See also QOpcUaClient::addReference().
Member Function Documentation
QOpcUaAddReferenceItem::QOpcUaAddReferenceItem(const QOpcUaAddReferenceItem &other)
Constructs an add reference item from other.
QOpcUaAddReferenceItem &QOpcUaAddReferenceItem::operator=(const QOpcUaAddReferenceItem &rhs)
Sets the values from rhs in this add reference item.
bool QOpcUaAddReferenceItem::isForwardReference() const
Returns the isForwardReference flag.
See also setIsForwardReference().
QString QOpcUaAddReferenceItem::referenceTypeId() const
Returns the reference type id.
See also setReferenceTypeId().
void QOpcUaAddReferenceItem::setIsForwardReference(bool isForwardReference)
Sets the isForwardReference flag to isForwardReference. If the flag is set, a forward reference is created. Otherwise, an inverse reference is created.
See also isForwardReference().
void QOpcUaAddReferenceItem::setReferenceTypeId(const QString &referenceTypeId)
Sets the reference type id to referenceTypeId. A reference of this type will be created on the server.
See also referenceTypeId().
void QOpcUaAddReferenceItem::setSourceNodeId(const QString &sourceNodeId)
Sets the node id of the source node to sourceNodeId.
See also sourceNodeId().
void QOpcUaAddReferenceItem::setTargetNodeClass(QOpcUa::NodeClass targetNodeClass)
Sets the node class of the target node to targetNodeClass. The target node class shall be specified because the target node might be located on another server.
See also targetNodeClass().
void QOpcUaAddReferenceItem::setTargetNodeId(const QOpcUaExpandedNodeId &targetNodeId)
Sets the node id of the target node to targetNodeId.
See also targetNodeId().
void QOpcUaAddReferenceItem::setTargetServerUri(const QString &targetServerUri)
Sets the URI of the target server to targetServerUri. If this value is set, it will override the server URI from setTargetNodeId().
See also targetServerUri().
QString QOpcUaAddReferenceItem::sourceNodeId() const
Returns the source node id.
See also setSourceNodeId().
QOpcUa::NodeClass QOpcUaAddReferenceItem::targetNodeClass() const
Returns the target node class.
See also setTargetNodeClass().
QOpcUaExpandedNodeId QOpcUaAddReferenceItem::targetNodeId() const
Returns the target node id.
See also setTargetNodeId().
QString QOpcUaAddReferenceItem::targetServerUri() const
Returns the target server URI.
See also setTargetServerUri().