QOpcUaEnumField Class

The OPC UA StructureDefinition type. 更多...

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

公共函数

QOpcUaEnumField ()
QOpcUaEnumField (const QOpcUaEnumField & other )
QOpcUaEnumField (QOpcUaEnumField && other )
~QOpcUaEnumField ()
QOpcUaLocalizedText description () const
QOpcUaLocalizedText displayName () const
QString name () const
void setDescription (const QOpcUaLocalizedText & description )
void setDisplayName (const QOpcUaLocalizedText & displayName )
void setName (const QString & name )
void setValue (qint64 value )
void swap (QOpcUaEnumField & other )
qint64 value () const
QVariant operator QVariant () const
QOpcUaEnumField & operator= (QOpcUaEnumField && other )
QOpcUaEnumField & operator= (const QOpcUaEnumField & rhs )
bool operator!= (const QOpcUaEnumField & lhs , const QOpcUaEnumField & rhs )
bool operator== (const QOpcUaEnumField & lhs , const QOpcUaEnumField & rhs )

详细描述

This is the Qt OPC UA representation for the OPC UA EnumField type defined in OPC UA part 3. It describes a field of an enum type.

成员函数文档编制

QOpcUaEnumField:: QOpcUaEnumField ()

Default constructs an enum field with no parameters set.

QOpcUaEnumField:: QOpcUaEnumField (const QOpcUaEnumField & other )

Constructs an enum field from other .

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

Move-constructs a new enum 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] QOpcUaEnumField:: ~QOpcUaEnumField ()

Destroy this enum definition object.

QOpcUaLocalizedText QOpcUaEnumField:: description () const

Returns the description of the enum field.

另请参阅 setDescription ().

QOpcUaLocalizedText QOpcUaEnumField:: displayName () const

Returns the display name of the enum field.

另请参阅 setDisplayName ().

QString QOpcUaEnumField:: name () const

Returns the name of the enum field.

另请参阅 setName ().

void QOpcUaEnumField:: setDescription (const QOpcUaLocalizedText & description )

Sets the description of the enum field to description .

另请参阅 description ().

void QOpcUaEnumField:: setDisplayName (const QOpcUaLocalizedText & displayName )

Sets the display name of the enum field to displayName .

另请参阅 displayName ().

void QOpcUaEnumField:: setName (const QString & name )

Sets the name of the enum field to name .

另请参阅 name ().

void QOpcUaEnumField:: setValue ( qint64 value )

Sets the enum value of the enum field to value .

另请参阅 value ().

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

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

qint64 QOpcUaEnumField:: value () const

Returns the enum value of the enum field.

另请参阅 setValue ().

QVariant QOpcUaEnumField:: operator QVariant () const

Converts this enum field to QVariant .

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

移动赋值 other 到此 QOpcUaEnumField 实例。

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

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

设置值从 rhs in this enum field.

相关非成员

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

返回 true if lhs 不等于 rhs .

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

返回 true if lhs 等于 rhs .