In questa pagina

QOpcUaStructureField Class

Il tipo StructureField di OPC UA. Per saperne di più...

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

Funzioni pubbliche

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)

Descrizione dettagliata

Questa è la rappresentazione Qt OPC UA per il tipo StructureField di OPC UA definito nella parte 3 di OPC UA. Descrive un campo di un tipo strutturato.

Documentazione delle funzioni dei membri

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

Crea un campo di struttura con valueRank.

QOpcUaStructureField::QOpcUaStructureField(const QOpcUaStructureField &other)

Crea un campo struttura da other.

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

Crea un nuovo campo della struttura a partire da other.

Nota: l'oggetto da cui è stato effettuato lo spostamento, other, viene posto in uno stato parzialmente formato, in cui le uniche operazioni valide sono la distruzione e l'assegnazione di un nuovo valore.

[noexcept] QOpcUaStructureField::~QOpcUaStructureField()

Elimina questo oggetto campo struttura.

QList<quint32> QOpcUaStructureField::arrayDimensions() const

Restituisce le dimensioni dell'array del campo della struttura.

Vedi anche ` setArrayDimensions()`.

QString QOpcUaStructureField::dataType() const

Restituisce l'ID del nodo del tipo di dati del campo della struttura.

Vedi anche setDataType().

QOpcUaLocalizedText QOpcUaStructureField::description() const

Restituisce la descrizione del campo della struttura.

Vedi anche setDescription().

bool QOpcUaStructureField::isOptional() const

Restituisce true se il campo della struttura è opzionale.

Vedi anche setIsOptional().

quint32 QOpcUaStructureField::maxStringLength() const

Restituisce la lunghezza massima della stringa del campo della struttura.

Vedi anche setMaxStringLength().

QString QOpcUaStructureField::name() const

Restituisce il nome del campo della struttura.

Vedi anche setName().

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

Imposta le dimensioni dell'array del campo della struttura su arrayDimensions.

Vedi anche ` arrayDimensions()`.

void QOpcUaStructureField::setDataType(const QString &dataTypeId)

Imposta l'ID del nodo del tipo di dati del campo della struttura su dataTypeId.

Vedi anche ` dataType()`.

void QOpcUaStructureField::setDescription(const QOpcUaLocalizedText &description)

Imposta la descrizione del campo della struttura su “ description ”.

Vedi anche description().

void QOpcUaStructureField::setIsOptional(bool isOptional)

Imposta il flag opzionale del campo della struttura su “ isOptional ”.

Vedi anche ` isOptional()`.

void QOpcUaStructureField::setMaxStringLength(quint32 maxStringLength)

Imposta la lunghezza massima della stringa del campo della struttura su maxStringLength.

Vedi anche maxStringLength().

void QOpcUaStructureField::setName(const QString &name)

Imposta il nome del campo della struttura su name.

Vedi anche name().

void QOpcUaStructureField::setValueRank(qint32 valueRank)

Imposta il valore "rank" del campo della struttura su " valueRank".

Vedi anche ` valueRank()`.

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

Sostituisce l'oggetto del campo della struttura other con questo oggetto del campo della struttura. Questa operazione è molto veloce e non fallisce mai.

qint32 QOpcUaStructureField::valueRank() const

Restituisce il valore "rank" del campo della struttura.

Vedi anche setValueRank().

QOpcUaStructureField::operator QVariant() const

Converte questo campo della struttura in un QVariant.

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

L'operazione "move-assign" assegna other a questa istanza di QOpcUaStructureField.

Nota: l'oggetto da cui è stato effettuato lo spostamento, other, viene posto in uno stato parzialmente formato, in cui le uniche operazioni valide sono la distruzione e l'assegnazione di un nuovo valore.

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

Imposta i valori provenienti da other in questo campo della struttura.

Elementi correlati non membri

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

Restituisce che true lhs non è uguale a rhs.

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

Restituisce che true lhs è uguale 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.