QOpcUaEnumField Class
The OPC UA StructureDefinition type. More...
Header: | #include <QOpcUaEnumField> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.7 |
Public Functions
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) |
Related Non-Members
bool | operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
bool | operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
Detailed Description
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.
Member Function Documentation
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.
Note: 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.
See also setDescription().
QOpcUaLocalizedText QOpcUaEnumField::displayName() const
Returns the display name of the enum field.
See also setDisplayName().
QString QOpcUaEnumField::name() const
Returns the name of the enum field.
See also setName().
void QOpcUaEnumField::setDescription(const QOpcUaLocalizedText &description)
Sets the description of the enum field to description.
See also description().
void QOpcUaEnumField::setDisplayName(const QOpcUaLocalizedText &displayName)
Sets the display name of the enum field to displayName.
See also displayName().
void QOpcUaEnumField::setName(const QString &name)
Sets the name of the enum field to name.
See also name().
void QOpcUaEnumField::setValue(qint64 value)
Sets the enum value of the enum field to value.
See also 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.
See also setValue().
QVariant QOpcUaEnumField::operator QVariant() const
Converts this enum field to QVariant.
[noexcept]
QOpcUaEnumField &QOpcUaEnumField::operator=(QOpcUaEnumField &&other)
Move-assigns other to this QOpcUaEnumField instance.
Note: 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)
Sets the values from rhs in this enum field.
Related Non-Members
[noexcept]
bool operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Returns true
if lhs is not equal to rhs.
[noexcept]
bool operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Returns true
if lhs is equal to rhs.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.