QOpcUaAddNodeItem Class

This class stores the necessary information to create a new node on the server. 更多...

头: #include <QOpcUaAddNodeItem>
qmake: QT += opcua

公共函数

  QOpcUaAddNodeItem (const QOpcUaAddNodeItem & other )
QOpcUaAddNodeItem & operator= (const QOpcUaAddNodeItem & rhs )
QOpcUaQualifiedName browseName () const
QOpcUaNodeCreationAttributes nodeAttributes () const
QOpcUaNodeCreationAttributes & nodeAttributesRef ()
QOpcUa::NodeClass nodeClass () const
QOpcUaExpandedNodeId parentNodeId () const
QString referenceTypeId () const
QOpcUaExpandedNodeId requestedNewNodeId () const
void setBrowseName (const QOpcUaQualifiedName & browseName )
void setNodeAttributes (const QOpcUaNodeCreationAttributes & nodeAttributes )
void setNodeClass (const QOpcUa::NodeClass & nodeClass )
void setParentNodeId (const QOpcUaExpandedNodeId & parentNodeId )
void setReferenceTypeId (const QString & referenceTypeId )
void setRequestedNewNodeId (const QOpcUaExpandedNodeId & requestedNewNodeId )
void setTypeDefinition (const QOpcUaExpandedNodeId & typeDefinition )
QOpcUaExpandedNodeId typeDefinition () const

详细描述

另请参阅 QOpcUaClient::addNode ().

成员函数文档编制

QOpcUaAddNodeItem:: QOpcUaAddNodeItem (const QOpcUaAddNodeItem & other )

Constructs a add node item from other .

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

Assigns the values from rhs to this add node item.

QOpcUaQualifiedName QOpcUaAddNodeItem:: browseName () const

Returns the browse name of the new node.

另请参阅 setBrowseName ().

QOpcUaNodeCreationAttributes QOpcUaAddNodeItem:: nodeAttributes () const

Returns the values for the node attributes of the new node.

另请参阅 setNodeAttributes ().

QOpcUaNodeCreationAttributes &QOpcUaAddNodeItem:: nodeAttributesRef ()

Returns a reference to the values for the node attributes of the new node.

QOpcUa::NodeClass QOpcUaAddNodeItem:: nodeClass () const

Returns the node class of the new node.

另请参阅 setNodeClass ().

QOpcUaExpandedNodeId QOpcUaAddNodeItem:: parentNodeId () const

Returns the parent node id.

另请参阅 setParentNodeId ().

QString QOpcUaAddNodeItem:: referenceTypeId () const

Returns the reference type id.

另请参阅 setReferenceTypeId ().

QOpcUaExpandedNodeId QOpcUaAddNodeItem:: requestedNewNodeId () const

Returns the requested new node id.

另请参阅 setRequestedNewNodeId ().

void QOpcUaAddNodeItem:: setBrowseName (const QOpcUaQualifiedName & browseName )

Sets the browse name of the new node to browseName .

另请参阅 browseName ().

void QOpcUaAddNodeItem:: setNodeAttributes (const QOpcUaNodeCreationAttributes & nodeAttributes )

Sets the values for the node attributes of the new node to nodeAttributes . Only the attributes supported by the node class of the new node will be used.

另请参阅 nodeAttributes ().

void QOpcUaAddNodeItem:: setNodeClass (const QOpcUa::NodeClass & nodeClass )

Sets the node class of the new node to nodeClass .

另请参阅 nodeClass ().

void QOpcUaAddNodeItem:: setParentNodeId (const QOpcUaExpandedNodeId & parentNodeId )

Sets the parent node id to parentNodeId . A reference of the type set in setReferenceTypeId () from this node to the newly added node will be created.

另请参阅 parentNodeId () 和 setReferenceTypeId ().

void QOpcUaAddNodeItem:: setReferenceTypeId (const QString & referenceTypeId )

Sets the reference type id to referenceTypeId . A reference of this type will be used to connect the node to the parent node.

另请参阅 referenceTypeId ().

void QOpcUaAddNodeItem:: setRequestedNewNodeId (const QOpcUaExpandedNodeId & requestedNewNodeId )

Sets the requested new node id to requestedNewNodeId .

另请参阅 requestedNewNodeId ().

void QOpcUaAddNodeItem:: setTypeDefinition (const QOpcUaExpandedNodeId & typeDefinition )

Sets the node id of the type definition node to typeDefinition . This value shall be set if the node class is not Object or Variable.

另请参阅 typeDefinition ().

QOpcUaExpandedNodeId QOpcUaAddNodeItem:: typeDefinition () const

Returns the node id of the type definition node.

另请参阅 setTypeDefinition ().