QOpcUaStructureField Class

The OPC UA StructureField type. 更多...

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

公共函數

QOpcUaStructureField (qint32 valueRank = -1)
QOpcUaStructureField (const QOpcUaStructureField & other )
QOpcUaStructureField (QOpcUaStructureField && other )
~QOpcUaStructureField ()
QList<quint32> arrayDimensions () const
QString dataType () const
QOpcUaLocalizedText description () const
bool isOptional () const
quint32 maxStringLength () const
QString name () const
void setArrayDimensions (const QList<quint32> & arrayDimensions )
void setDataType (const QString & dataTypeId )
void setDescription (const QOpcUaLocalizedText & 描述 )
void setIsOptional (bool isOptional )
void setMaxStringLength (quint32 maxStringLength )
void setName (const QString & name )
void setValueRank (qint32 valueRank )
void swap (QOpcUaStructureField & other )
qint32 valueRank () const
QVariant operator QVariant () const
QOpcUaStructureField & operator= (QOpcUaStructureField && other )
QOpcUaStructureField & operator= (const QOpcUaStructureField & other )
bool operator!= (const QOpcUaStructureField & lhs , const QOpcUaStructureField & rhs )
bool operator== (const QOpcUaStructureField & lhs , const QOpcUaStructureField & rhs )

詳細描述

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

成員函數文檔編製

[explicit] QOpcUaStructureField:: QOpcUaStructureField ( qint32 valueRank = -1)

Constructs a structure field with valueRank .

QOpcUaStructureField:: QOpcUaStructureField (const QOpcUaStructureField & other )

Constructs a structure field from other .

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

Move-constructs a new structure field 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] QOpcUaStructureField:: ~QOpcUaStructureField ()

Destroys this structure field object.

QList < quint32 > QOpcUaStructureField:: arrayDimensions () const

Returns the array dimenstions of the struct field.

另請參閱 setArrayDimensions ().

QString QOpcUaStructureField:: dataType () const

Returns the data type node ID of the struct field.

另請參閱 setDataType ().

QOpcUaLocalizedText QOpcUaStructureField:: description () const

Returns the description of the struct field.

另請參閱 setDescription ().

bool QOpcUaStructureField:: isOptional () const

返迴 true if the struct field is optional.

另請參閱 setIsOptional ().

quint32 QOpcUaStructureField:: maxStringLength () const

Returns the maximum string length of the struct field.

另請參閱 setMaxStringLength ().

QString QOpcUaStructureField:: 名稱 () const

Returns the name of the struct field.

另請參閱 setName ().

void QOpcUaStructureField:: setArrayDimensions (const QList < quint32 > & arrayDimensions )

Sets the array dimensions of the struct field to arrayDimensions .

另請參閱 arrayDimensions ().

void QOpcUaStructureField:: setDataType (const QString & dataTypeId )

Sets the data type node ID of the struct field to dataTypeId .

另請參閱 dataType ().

void QOpcUaStructureField:: setDescription (const QOpcUaLocalizedText & 描述 )

Sets the description of the struct field to description .

另請參閱 description ().

void QOpcUaStructureField:: setIsOptional ( bool isOptional )

Sets the optional flag of the struct field to isOptional .

另請參閱 isOptional ().

void QOpcUaStructureField:: setMaxStringLength ( quint32 maxStringLength )

Sets the maximum string length of the struct field to maxStringLength .

另請參閱 maxStringLength ().

void QOpcUaStructureField:: setName (const QString & name )

Sets the name of the struct field to name .

另請參閱 name ().

void QOpcUaStructureField:: setValueRank ( qint32 valueRank )

Sets the value rank of the struct field to valueRank .

另請參閱 valueRank ().

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

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

qint32 QOpcUaStructureField:: valueRank () const

Returns the value rank of the struct field.

另請參閱 setValueRank ().

QVariant QOpcUaStructureField:: operator QVariant () const

Converts this structure field to QVariant .

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

移動賦值 other 到此 QOpcUaStructureField 實例。

注意: 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.

QOpcUaStructureField &QOpcUaStructureField:: operator= (const QOpcUaStructureField & other )

設置值從 other in this structure field.

相關非成員

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

返迴 true lhs 不等於 rhs .

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

返迴 true lhs 等於 rhs .