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.
Default constructs an enum field with no parameters set.
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.
Returns the description of the enum field.
另请参阅 setDescription ().
Returns the display name of the enum field.
另请参阅 setDisplayName ().
Returns the name of the enum field.
另请参阅 setName ().
Sets the description of the enum field to description .
另请参阅 description ().
Sets the display name of the enum field to displayName .
另请参阅 displayName ().
Sets the name of the enum field to name .
另请参阅 name ().
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.
Returns the enum value of the enum field.
另请参阅 setValue ().
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.
设置值从 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
.