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 & description )
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:: name () 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 & description )

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 .