QOpcUaEnumField Class
El tipo de StructureDefinition de OPC UA. Más...
| Cabecera: | #include <QOpcUaEnumField> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa)target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Desde: | Qt 6.7 |
Funciones Públicas
| 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 |
| operator QVariant() const | |
| QOpcUaEnumField & | operator=(QOpcUaEnumField &&other) |
| QOpcUaEnumField & | operator=(const QOpcUaEnumField &rhs) |
No miembros relacionados
| bool | operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
| bool | operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
Descripción detallada
Esta es la representación Qt OPC UA para el tipo OPC UA EnumField definido en OPC UA parte 3. Describe un campo de tipo enum.
Documentación de la función miembro
QOpcUaEnumField::QOpcUaEnumField()
Default construye un campo enum sin parámetros.
QOpcUaEnumField::QOpcUaEnumField(const QOpcUaEnumField &other)
Construye un campo enum a partir de other.
[constexpr noexcept] QOpcUaEnumField::QOpcUaEnumField(QOpcUaEnumField &&other)
Mover-construye un nuevo campo enum a partir de other.
Nota: El objeto movido-desde other se coloca en un estado parcialmente formado, en el que las únicas operaciones válidas son la destrucción y la asignación de un nuevo valor.
[noexcept] QOpcUaEnumField::~QOpcUaEnumField()
Destruye este objeto de definición de enum.
QOpcUaLocalizedText QOpcUaEnumField::description() const
Devuelve la descripción del campo enum.
Véase también setDescription().
QOpcUaLocalizedText QOpcUaEnumField::displayName() const
Devuelve el nombre de visualización del campo enum.
Véase también setDisplayName().
QString QOpcUaEnumField::name() const
Devuelve el nombre del campo enum.
Véase también setName().
void QOpcUaEnumField::setDescription(const QOpcUaLocalizedText &description)
Establece la descripción del campo enum en description.
Véase también description().
void QOpcUaEnumField::setDisplayName(const QOpcUaLocalizedText &displayName)
Establece el nombre de visualización del campo enum en displayName.
Véase también displayName().
void QOpcUaEnumField::setName(const QString &name)
Establece el nombre del campo enum en name.
Véase también name().
void QOpcUaEnumField::setValue(qint64 value)
Establece el valor del campo enum en value.
Véase también value().
[noexcept] void QOpcUaEnumField::swap(QOpcUaEnumField &other)
Intercambia el objeto de campo enum other con este objeto de campo enum. Esta operación es muy rápida y nunca falla.
qint64 QOpcUaEnumField::value() const
Devuelve el valor del campo enum.
Véase también setValue().
QOpcUaEnumField::operator QVariant() const
Convierte este campo enum a QVariant.
[noexcept] QOpcUaEnumField &QOpcUaEnumField::operator=(QOpcUaEnumField &&other)
Mover-asigna other a esta instancia QOpcUaEnumField.
Nota: El objeto movido-desde other se coloca en un estado parcialmente formado, en el que las únicas operaciones válidas son la destrucción y la asignación de un nuevo valor.
QOpcUaEnumField &QOpcUaEnumField::operator=(const QOpcUaEnumField &rhs)
Establece los valores de rhs en este campo enum.
No miembros relacionados
[noexcept] bool operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Devuelve true si lhs no es igual a rhs.
[noexcept] bool operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Devuelve true si lhs es igual a rhs.
© 2026 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.