In questa pagina

QOpcUaAttributeOperand Class

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

Intestazione: #include <QOpcUaAttributeOperand>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Funzioni pubbliche

QOpcUaAttributeOperand()
QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)
QString alias() const
QOpcUa::NodeAttribute attributeId() const
QList<QOpcUaRelativePathElement> browsePath() const
QList<QOpcUaRelativePathElement> &browsePathRef()
QString indexRange() const
QString nodeId() const
void setAlias(const QString &alias)
void setAttributeId(QOpcUa::NodeAttribute attributeId)
void setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)
void setIndexRange(const QString &indexRange)
void setNodeId(const QString &nodeId)
operator QVariant() const
QOpcUaAttributeOperand &operator=(const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)
(since 6.7) bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Descrizione dettagliata

L'AttributeOperand è definito nella specifica OPC UA 1.05, parte 4, sezione 7.7.4.4. Ha lo stesso scopo dell'QOpcUaSimpleAttributeOperand, ma offre un maggior numero di opzioni configurabili.

Documentazione sulle funzioni dei membri

QOpcUaAttributeOperand::QOpcUaAttributeOperand()

Il valore predefinito crea un operando di tipo attributo senza parametri specificati.

QOpcUaAttributeOperand::QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)

Crea un operando attributo a partire da rhs.

QString QOpcUaAttributeOperand::alias() const

Restituisce l'alias di questo QAttributeOperand.

Vedi anche setAlias().

QOpcUa::NodeAttribute QOpcUaAttributeOperand::attributeId() const

Restituisce l'ID di un attributo del nodo a cui punta browsePath.

Vedi anche setAttributeId().

QList<QOpcUaRelativePathElement> QOpcUaAttributeOperand::browsePath() const

Restituisce il percorso di navigazione.

Vedi anche setBrowsePath().

QList<QOpcUaRelativePathElement> &QOpcUaAttributeOperand::browsePathRef()

Restituisce un riferimento al percorso di navigazione.

Vedi anche browsePath().

QString QOpcUaAttributeOperand::indexRange() const

Restituisce la stringa che indica l'intervallo di indici.

Vedi anche setIndexRange().

QString QOpcUaAttributeOperand::nodeId() const

Restituisce l'ID del nodo di definizione del tipo.

Vedi anche setNodeId().

void QOpcUaAttributeOperand::setAlias(const QString &alias)

Imposta l'alias su alias. Ciò consente di utilizzare questa istanza come operando per altre operazioni nel filtro.

Vedi anche alias().

void QOpcUaAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)

Imposta l'attributo id su attributeId.

Vedi anche attributeId().

void QOpcUaAttributeOperand::setBrowsePath(const QList<QOpcUaRelativePathElement> &browsePath)

Imposta il percorso relativo di un nodo, partendo da nodeId() e arrivando a browsePath.

Vedi anche browsePath().

void QOpcUaAttributeOperand::setIndexRange(const QString &indexRange)

Imposta la stringa dell'intervallo di indice utilizzata per identificare un singolo valore o un sottoinsieme del valore dell'attributo su indexRange.

Vedi anche indexRange().

void QOpcUaAttributeOperand::setNodeId(const QString &nodeId)

Imposta l'ID del nodo della definizione del tipo su nodeId.

Vedi anche nodeId().

QOpcUaAttributeOperand::operator QVariant() const

Converte l'operando di questo attributo in un QVariant.

QOpcUaAttributeOperand &QOpcUaAttributeOperand::operator=(const QOpcUaAttributeOperand &rhs)

Imposta i valori provenienti da rhs in questo operando di attributo.

Elementi correlati non membri

[noexcept, since 6.7] bool operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Restituisce ` true ` se ` lhs ` ha un valore diverso da ` rhs`.

Questa funzione è stata introdotta in Qt 6.7.

[noexcept, since 6.7] bool operator==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs)

Restituisce ` true ` se ` lhs ` ha lo stesso valore di ` rhs`.

Questa funzione è stata introdotta in Qt 6.7.

© 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.