This class stores the necessary information to add a new reference on the server. 更多...
头: | #include <QOpcUaAddReferenceItem> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
QOpcUaAddReferenceItem () | |
QOpcUaAddReferenceItem (const QOpcUaAddReferenceItem & other ) | |
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 |
QOpcUaAddReferenceItem & | operator= (const QOpcUaAddReferenceItem & rhs ) |
另请参阅 QOpcUaClient::addReference ().
Default constructs an add reference item with no parameters set.
Constructs an add reference item from other .
Returns the isForwardReference flag.
另请参阅 setIsForwardReference ().
Returns the reference type id.
另请参阅 setReferenceTypeId ().
设置 isForwardReference flag to isForwardReference . If the flag is set, a forward reference is created. Otherwise, an inverse reference is created.
另请参阅 isForwardReference ().
Sets the reference type id to referenceTypeId . A reference of this type will be created on the server.
另请参阅 referenceTypeId ().
Sets the node id of the source node to sourceNodeId .
另请参阅 sourceNodeId ().
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.
另请参阅 targetNodeClass ().
Sets the node id of the target node to targetNodeId .
另请参阅 targetNodeId ().
Sets the URI of the target server to targetServerUri . If this value is set, it will override the server URI from setTargetNodeId ().
另请参阅 targetServerUri ().
Returns the source node id.
另请参阅 setSourceNodeId ().
Returns the target node class.
另请参阅 setTargetNodeClass ().
Returns the target node id.
另请参阅 setTargetNodeId ().
Returns the target server URI.
另请参阅 setTargetServerUri ().
设置值从 rhs in this add reference item.