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 .