QOpcUaSimpleAttributeOperand Class
Il tipo SimpleAttributeOperand di OPC UA. Per saperne di più...
| Intestazione: | #include <QOpcUaSimpleAttributeOperand> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
Funzioni pubbliche
| QOpcUaSimpleAttributeOperand() | |
| QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041")) | |
| QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value) | |
| QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs) | |
| QOpcUa::NodeAttribute | attributeId() const |
| QList<QOpcUaQualifiedName> | browsePath() const |
| QList<QOpcUaQualifiedName> & | browsePathRef() |
| QString | indexRange() const |
| void | setAttributeId(QOpcUa::NodeAttribute attributeId) |
| void | setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath) |
| void | setIndexRange(const QString &indexRange) |
| void | setTypeId(const QString &typeId) |
| QString | typeId() const |
| operator QVariant() const | |
| QOpcUaSimpleAttributeOperand & | operator=(const QOpcUaSimpleAttributeOperand &rhs) |
Elementi non membri correlati
(since 6.7) bool | operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs) |
| bool | operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs) |
Descrizione dettagliata
L'operando SimpleAttributeOperand è specificato nella norma OPC UA 1.05, parte 4, sezione 7.7.4.5. Viene utilizzato quando è richiesto un attributo di nodo come operando.
Ad esempio, il seguente operando di attributo semplice rappresenta il valore del campo "Severity" del tipo di evento di base:
QOpcUaSimpleAttributeOperand("Severity");Documentazione delle funzioni membro
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()
Il valore predefinito crea un semplice operando di tipo attributo senza parametri specificati.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
Crea un semplice operando di attributo per l'attributo " attributeId " di un oggetto o di una variabile di tipo " typeId". Può essere utilizzato per richiedere il ConditionId in un filtro di eventi, come descritto nella specifica OPC UA 1.05, parte 9, paragrafo 5.5.2.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QString &name, quint16 namespaceIndex = 0, const QString &typeId = QStringLiteral("ns=0;i=2041"), QOpcUa::NodeAttribute attributeId = QOpcUa::NodeAttribute::Value)
Crea un semplice operando di attributo per l'attributo attributeId del figlio diretto con il nome di navigazione name nello spazio dei nomi namespaceIndex. typeId è l'ID del nodo di una definizione di tipo. L'operando sarà limitato alle istanze del tipo typeId o di un suo sottotipo.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)
Crea un semplice operando di tipo attributo a partire da rhs.
QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const
Restituisce l'attributo del nodo a cui punta browsePath.
Vedi anche setAttributeId().
QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const
Restituisce il percorso relativo di un nodo a partire da typeId.
Vedi anche setBrowsePath().
QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()
Restituisce un riferimento al percorso di navigazione.
Vedi anche browsePath().
QString QOpcUaSimpleAttributeOperand::indexRange() const
Restituisce la stringa dell'intervallo di indici.
Vedi anche setIndexRange().
void QOpcUaSimpleAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)
Imposta l'attributo id su attributeId.
Vedi anche attributeId().
void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)
Imposta il percorso di navigazione verso il nodo che contiene l'attributo su browsePath.
Vedi anche browsePath().
void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)
Imposta la stringa dell'intervallo di indici utilizzata per identificare un singolo valore o un sottoinsieme del valore dell'attributo su indexRange.
Vedi anche indexRange().
void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)
Imposta l'ID del nodo della definizione di tipo su typeId. L'operando sarà di quel tipo o di uno dei suoi sottotipi.
Vedi anche typeId().
QString QOpcUaSimpleAttributeOperand::typeId() const
Restituisce l'ID di un nodo di definizione di tipo.
Vedi anche setTypeId().
QOpcUaSimpleAttributeOperand::operator QVariant() const
Converte questo operando di tipo "attributo semplice" in un QVariant.
QOpcUaSimpleAttributeOperand &QOpcUaSimpleAttributeOperand::operator=(const QOpcUaSimpleAttributeOperand &rhs)
Imposta i valori presenti all'indirizzo rhs in questo operando attributo semplice.
Elementi correlati non membri
[noexcept, since 6.7] bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)
Restituisce " true " se " lhs " ha un valore diverso da " rhs".
Questa funzione è stata introdotta in Qt 6.7.
[noexcept] bool operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)
Restituisce " true " se " lhs " ha lo stesso valore di " 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.