QOpcUaStructureDefinition Class

The OPC UA StructureDefinition type. 更多...

头: #include <QOpcUaStructureDefinition>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Since: Qt 6.7

公共函数

QOpcUaStructureDefinition ()
QOpcUaStructureDefinition (const QOpcUaStructureDefinition & rhs )
QOpcUaStructureDefinition (QOpcUaStructureDefinition && other )
~QOpcUaStructureDefinition ()
QString baseDataType () const
QString defaultEncodingId () const
QList<QOpcUaStructureField> fields () const
void setBaseDataType (const QString & baseDataType )
void setDefaultEncodingId (const QString & defaultEncodingId )
void setFields (const QList<QOpcUaStructureField> & fields )
void setStructureType (const QOpcUaStructureDefinition::StructureType & structureType )
QOpcUaStructureDefinition::StructureType structureType () const
void swap (QOpcUaStructureDefinition & other )
QVariant operator QVariant () const
QOpcUaStructureDefinition & operator= (QOpcUaStructureDefinition && other )
QOpcUaStructureDefinition & operator= (const QOpcUaStructureDefinition & rhs )
bool operator!= (const QOpcUaStructureDefinition & lhs , const QOpcUaStructureDefinition & rhs )
bool operator== (const QOpcUaStructureDefinition & lhs , const QOpcUaStructureDefinition & rhs )

详细描述

This is the Qt OPC UA representation for the OPC UA StructureDefinition type defined in OPC UA part 3. It describes the structure of a structured type.

成员函数文档编制

QOpcUaStructureDefinition:: QOpcUaStructureDefinition ()

Default constructs a structure definition with no parameters set.

QOpcUaStructureDefinition:: QOpcUaStructureDefinition (const QOpcUaStructureDefinition & rhs )

Constructs a structure definition from rhs .

[noexcept] QOpcUaStructureDefinition:: QOpcUaStructureDefinition ( QOpcUaStructureDefinition && other )

Move-constructs a new structure definition from other .

注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

[noexcept] QOpcUaStructureDefinition:: ~QOpcUaStructureDefinition ()

Destroys this structure definition object.

QString QOpcUaStructureDefinition:: baseDataType () const

Returns the node id of the base data type of the struct type.

另请参阅 setBaseDataType ().

QString QOpcUaStructureDefinition:: defaultEncodingId () const

Returns the default encoding node ID for the struct type.

另请参阅 setDefaultEncodingId ().

QList < QOpcUaStructureField > QOpcUaStructureDefinition:: fields () const

Returns the fields of the struct type.

另请参阅 setFields ().

void QOpcUaStructureDefinition:: setBaseDataType (const QString & baseDataType )

Sets the base data type node id of the type to baseDataType .

另请参阅 baseDataType ().

void QOpcUaStructureDefinition:: setDefaultEncodingId (const QString & defaultEncodingId )

Sets the default encoding node ID of the struct type to defaultEncodingId .

另请参阅 defaultEncodingId ().

void QOpcUaStructureDefinition:: setFields (const QList < QOpcUaStructureField > & fields )

Sets the fields of the struct type to fields .

另请参阅 fields ().

void QOpcUaStructureDefinition:: setStructureType (const QOpcUaStructureDefinition::StructureType & structureType )

Sets the structure type to structureType .

另请参阅 structureType ().

QOpcUaStructureDefinition::StructureType QOpcUaStructureDefinition:: structureType () const

Returns the structure type of the struct type.

另请参阅 setStructureType ().

[noexcept] void QOpcUaStructureDefinition:: swap ( QOpcUaStructureDefinition & other )

Swaps structure definition object other with this structure definition object. This operation is very fast and never fails.

QVariant QOpcUaStructureDefinition:: operator QVariant () const

Converts this structure definition to QVariant .

[noexcept] QOpcUaStructureDefinition &QOpcUaStructureDefinition:: operator= ( QOpcUaStructureDefinition && other )

移动赋值 other 到此 QOpcUaStructureDefinition 实例。

注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

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

设置值从 rhs in this structure definition.

相关非成员

[noexcept] bool operator!= (const QOpcUaStructureDefinition & lhs , const QOpcUaStructureDefinition & rhs )

返回 true if lhs 不等于 rhs .

[noexcept] bool operator== (const QOpcUaStructureDefinition & lhs , const QOpcUaStructureDefinition & rhs )

返回 true if lhs 等于 rhs .