QOpcUaArgument Class
Il tipo di argomento OPC UA. Maggiori informazioni...
| Intestazione: | #include <QOpcUaArgument> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funzioni pubbliche
| QOpcUaArgument() | |
| QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description) | |
| QList<quint32> | arrayDimensions() const |
| QList<quint32> & | arrayDimensionsRef() |
| QString | dataTypeId() const |
| QOpcUaLocalizedText | description() const |
| QString | name() const |
| void | setArrayDimensions(const QList<quint32> &arrayDimensions) |
| void | setDataTypeId(const QString &dataTypeId) |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setName(const QString &name) |
| void | setValueRank(qint32 valueRank) |
| qint32 | valueRank() const |
| operator QVariant() const | |
| QOpcUaArgument & | operator=(const QOpcUaArgument &rhs) |
| bool | operator==(const QOpcUaArgument &other) const |
Descrizione dettagliata
Questa è la rappresentazione Qt OPC UA per il tipo Argument definito in OPC UA 1.05 parte 3, 8.6.
Il tipo Argument viene utilizzato principalmente per i valori delle proprietà InputArguments e OutputArguments, che descrivono i parametri e i valori di ritorno dei nodi metodo.
Documentazione delle funzioni dei membri
QOpcUaArgument::QOpcUaArgument()
Il valore predefinito crea un argomento senza parametri specificati.
QOpcUaArgument::QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description)
Crea un argomento con il nome name, il tipo di dati id dataTypeId, il valore rank valueRank, le dimensioni dell'array arrayDimensions e la descrizione description.
QList<quint32> QOpcUaArgument::arrayDimensions() const
Restituisce le dimensioni dell'array dell'argomento.
Le dimensioni dell'array descrivono la lunghezza di ciascuna dimensione dell'array.
Vedi anche setArrayDimensions().
QList<quint32> &QOpcUaArgument::arrayDimensionsRef()
Restituisce un riferimento alle dimensioni dell'array dell'argomento.
QString QOpcUaArgument::dataTypeId() const
Restituisce l'ID del nodo del tipo di dati dell'argomento.
Vedi anche setDataTypeId().
QOpcUaLocalizedText QOpcUaArgument::description() const
Restituisce la descrizione dell'argomento.
Vedi anche setDescription().
QString QOpcUaArgument::name() const
Restituisce il nome dell'argomento.
Vedi anche setName().
void QOpcUaArgument::setArrayDimensions(const QList<quint32> &arrayDimensions)
Imposta le dimensioni dell'array dell'argomento su arrayDimensions.
Vedi anche arrayDimensions().
void QOpcUaArgument::setDataTypeId(const QString &dataTypeId)
Imposta l’ID del nodo del tipo di dati dell’argomento su “ dataTypeId ”.
Vedi anche dataTypeId().
void QOpcUaArgument::setDescription(const QOpcUaLocalizedText &description)
Imposta la descrizione dell'argomento su " description".
Vedi anche description().
void QOpcUaArgument::setName(const QString &name)
Imposta il nome dell'argomento su name.
Vedi anche name().
void QOpcUaArgument::setValueRank(qint32 valueRank)
Imposta il valore "rank" dell'argomento su " valueRank".
Vedi anche valueRank().
qint32 QOpcUaArgument::valueRank() const
Restituisce il “value rank” dell’argomento. Il “value rank” descrive la struttura del valore.
| ValueRank | Significato |
|---|---|
| -3 | Scalare o array unidimensionale |
| -2 | Scalare o array con un numero qualsiasi di dimensioni |
| -1 | Non è un array |
| 0 | Matrice con una o più dimensioni |
| 1 | Array unidimensionale |
| >1 | Array a n dimensioni |
Vedi anche setValueRank().
QOpcUaArgument::operator QVariant() const
Converte questo argomento in un QVariant.
QOpcUaArgument &QOpcUaArgument::operator=(const QOpcUaArgument &rhs)
Imposta i valori da rhs in questo argomento.
bool QOpcUaArgument::operator==(const QOpcUaArgument &other) const
Restituisce "true" se questo argomento ha lo stesso valore di other.
© 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.