QOpcUaRelativePathElement Class

The OPC UA RelativePathElement. 更多...

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

公共函数

  QOpcUaRelativePathElement (const QOpcUaRelativePathElement & rhs )
  QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , QOpcUa::ReferenceTypeId refType )
  QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , const QString & refType )
  QOpcUaRelativePathElement ()
QOpcUaRelativePathElement & operator= (const QOpcUaRelativePathElement & rhs )
bool includeSubtypes () const
bool isInverse () const
QString referenceTypeId () const
void setIncludeSubtypes (bool includeSubtypes )
void setIsInverse (bool isInverse )
void setReferenceTypeId (const QString & referenceTypeId )
void setReferenceTypeId (QOpcUa::ReferenceTypeId referenceTypeId )
void setTargetName (const QOpcUaQualifiedName & targetName )
QOpcUaQualifiedName targetName () const
bool operator== (const QOpcUaRelativePathElement & rhs ) const

详细描述

QOpcUaRelativePathElement defines an element of a relative path on an OPC UA server. This is needed for resolution of browse paths to node ids in QOpcUaNode::resolveBrowsePath ().

成员函数文档编制

QOpcUaRelativePathElement:: QOpcUaRelativePathElement (const QOpcUaRelativePathElement & rhs )

Constructs a relative path element from rhs .

QOpcUaRelativePathElement:: QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , QOpcUa::ReferenceTypeId refType )

Constructs a relative path element with targetName target , QOpcUa::ReferenceTypeId refType and both flags set to false .

QOpcUaRelativePathElement:: QOpcUaRelativePathElement (const QOpcUaQualifiedName & target , const QString & refType )

Constructs a relative path element with targetName target , reference type node id refType and both flags set to false .

QOpcUaRelativePathElement:: QOpcUaRelativePathElement ()

Constructs a relative path element with both flags set to false .

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

Sets the values of rhs in this relative path element.

bool QOpcUaRelativePathElement:: includeSubtypes () const

Returns the value of the includeSubtypes flag.

另请参阅 setIncludeSubtypes ().

bool QOpcUaRelativePathElement:: isInverse () const

Returns the value of the isInverse flag.

另请参阅 setIsInverse ().

QString QOpcUaRelativePathElement:: referenceTypeId () const

Returns the type id of the reference connecting this node to the previous node.

另请参阅 setReferenceTypeId ().

void QOpcUaRelativePathElement:: setIncludeSubtypes ( bool includeSubtypes )

设置 includeSubtypes flag to includeSubtypes . If the flag is true , the lookup also follows references with subtypes of referenceTypeId ().

另请参阅 includeSubtypes ().

void QOpcUaRelativePathElement:: setIsInverse ( bool isInverse )

设置 isInverse flag to isInverse . If the flag is true , the lookup follows the reverse reference.

另请参阅 isInverse ().

void QOpcUaRelativePathElement:: setReferenceTypeId (const QString & referenceTypeId )

Sets the reference type id to referenceTypeId .

另请参阅 referenceTypeId ().

void QOpcUaRelativePathElement:: setReferenceTypeId ( QOpcUa::ReferenceTypeId referenceTypeId )

Sets the reference type id to referenceTypeId .

void QOpcUaRelativePathElement:: setTargetName (const QOpcUaQualifiedName & targetName )

Sets the target name to targetName ,例如 QOpcUaQualifiedName (0, "DataTypes").

另请参阅 targetName ().

QOpcUaQualifiedName QOpcUaRelativePathElement:: targetName () const

Returns the qualified name of the reference's target.

另请参阅 setTargetName ().

bool QOpcUaRelativePathElement:: operator== (const QOpcUaRelativePathElement & rhs ) const

返回 true if this relative path element has the same value as rhs .