En esta página

QOpcUaStructureField Class

El tipo StructureField de OPC UA. Más información...

Encabezado: #include <QOpcUaStructureField>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Desde: Qt 6.7

Funciones públicas

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
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)

Descripción detallada

Esta es la representación de Qt OPC UA para el tipo StructureField de OPC UA definido en la parte 3 de OPC UA. Describe un campo de un tipo estructurado.

Documentación de las funciones de los miembros

[explicit] QOpcUaStructureField::QOpcUaStructureField(qint32 valueRank = -1)

Crea un campo de estructura con « valueRank ».

QOpcUaStructureField::QOpcUaStructureField(const QOpcUaStructureField &other)

Crea un campo de estructura a partir de other.

[constexpr noexcept default] QOpcUaStructureField::QOpcUaStructureField(QOpcUaStructureField &&other)

Crea un nuevo campo de estructura a partir de other.

Nota: El objeto del que se ha realizado el movimiento, other, queda 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] QOpcUaStructureField::~QOpcUaStructureField()

Elimina este objeto de campo de estructura.

QList<quint32> QOpcUaStructureField::arrayDimensions() const

Devuelve las dimensiones del array del campo de la estructura.

Véase también ` setArrayDimensions()`.

QString QOpcUaStructureField::dataType() const

Devuelve el identificador de nodo del tipo de datos del campo de la estructura.

Véase también setDataType().

QOpcUaLocalizedText QOpcUaStructureField::description() const

Devuelve la descripción del campo de la estructura.

Véase también setDescription().

bool QOpcUaStructureField::isOptional() const

Devuelve ` true ` si el campo de la estructura es opcional.

Véase también setIsOptional().

quint32 QOpcUaStructureField::maxStringLength() const

Devuelve la longitud máxima de la cadena del campo de la estructura.

Véase también setMaxStringLength().

QString QOpcUaStructureField::name() const

Devuelve el nombre del campo de la estructura.

Véase también ` setName()`.

void QOpcUaStructureField::setArrayDimensions(const QList<quint32> &arrayDimensions)

Establece las dimensiones de la matriz del campo de la estructura en arrayDimensions.

Véase también arrayDimensions().

void QOpcUaStructureField::setDataType(const QString &dataTypeId)

Establece el ID de nodo del tipo de datos del campo de la estructura en « dataTypeId ».

Véase también ` dataType()`.

void QOpcUaStructureField::setDescription(const QOpcUaLocalizedText &description)

Establece la descripción del campo de la estructura en « description ».

Véase también description().

void QOpcUaStructureField::setIsOptional(bool isOptional)

Establece el indicador opcional del campo de la estructura en « isOptional ».

Véase también ` isOptional()`.

void QOpcUaStructureField::setMaxStringLength(quint32 maxStringLength)

Establece la longitud máxima de la cadena del campo de la estructura en maxStringLength.

Véase también maxStringLength().

void QOpcUaStructureField::setName(const QString &name)

Establece el nombre del campo de la estructura en « name ».

Véase también name().

void QOpcUaStructureField::setValueRank(qint32 valueRank)

Establece el valor «rank» del campo de la estructura en « valueRank ».

Véase también ` valueRank()`.

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

Intercambia el objeto de campo de estructura other por este objeto de campo de estructura. Esta operación es muy rápida y nunca falla.

qint32 QOpcUaStructureField::valueRank() const

Devuelve el valor «rank» del campo de la estructura.

Véase también « setValueRank()».

QOpcUaStructureField::operator QVariant() const

Convierte este campo de estructura en « QVariant ».

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

La operación «move-assigns» asigna other a esta instancia de QOpcUaStructureField.

Nota: El objeto del que se ha realizado el traslado, other, pasa a un estado parcialmente formado, en el que las únicas operaciones válidas son la destrucción y la asignación de un nuevo valor.

QOpcUaStructureField &QOpcUaStructureField::operator=(const QOpcUaStructureField &other)

Establece los valores de other en este campo de la estructura.

Elementos no miembros relacionados

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

Devuelve « true »: « lhs » no es igual a « rhs ».

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

Devuelve que « true » y « lhs » son iguales 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.