Sur cette page

QOpcUaSimpleAttributeOperand Class

Le type SimpleAttributeOperand d'OPC UA. Plus d'informations...

En-tête : #include <QOpcUaSimpleAttributeOperand>
CMake : find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake : QT += opcua

Fonctions publiques

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)
(since 6.7) bool operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)
bool operator==(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs)

Description détaillée

L'opérande SimpleAttributeOperand est spécifié dans OPC UA 1.05, partie 4, 7.7.4.5. Elle est utilisée lorsqu'un attribut de nœud est requis comme opérande.

Par exemple, l'opérande d'attribut simple suivant représente la valeur du champ "Severity" du type d'événement de base :

Membre Fonction Documentation

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()

Default construit un simple opérande d'attribut sans paramètre défini.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))

Construit un opérande d'attribut simple pour l'attribut attributeId d'un objet ou d'une variable de type typeId. Ceci peut être utilisé pour demander le ConditionId dans un filtre d'événement comme décrit dans OPC UA 1.05 partie 9, 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)

Construit un opérande d'attribut simple pour l'attribut attributeId de l'enfant direct avec le nom de navigation name dans l'espace de noms namespaceIndex. typeId est l'identifiant de nœud d'un nœud de définition de type. L'opérande sera limité aux instances du type typeId ou d'un sous-type.

QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)

Construit un opérande d'attribut simple à partir de rhs.

QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const

Renvoie l'attribut du nœud vers lequel browsePath pointe.

Voir aussi setAttributeId().

QList<QOpcUaQualifiedName> QOpcUaSimpleAttributeOperand::browsePath() const

Renvoie le chemin relatif vers un nœud à partir de typeId.

Voir aussi setBrowsePath().

QList<QOpcUaQualifiedName> &QOpcUaSimpleAttributeOperand::browsePathRef()

Renvoie une référence au chemin de navigation.

Voir aussi browsePath().

QString QOpcUaSimpleAttributeOperand::indexRange() const

Renvoie la chaîne de l'intervalle d'index.

Voir aussi setIndexRange().

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

Définit l'attribut id à attributeId.

Voir aussi attributeId().

void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)

Définit le chemin de navigation vers le nœud contenant l'attribut à browsePath.

Voir aussi browsePath().

void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)

Définit la chaîne d'intervalle d'index utilisée pour identifier une valeur unique ou un sous-ensemble de la valeur de l'attribut à indexRange.

Voir également indexRange().

void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)

Définit l'identifiant du nœud de définition du type à typeId. L'opérande sera le type ou l'un de ses sous-types.

Voir aussi typeId().

QString QOpcUaSimpleAttributeOperand::typeId() const

Renvoie l'identifiant d'un nœud de définition de type.

Voir aussi setTypeId().

QOpcUaSimpleAttributeOperand::operator QVariant() const

Convertit cet opérande d'attribut simple en QVariant.

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

Définit les valeurs de rhs dans cet opérande d'attribut simple.

Non-membres apparentés

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

Renvoie true si lhs a une valeur différente de rhs.

Cette fonction a été introduite dans Qt 6.7.

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

Renvoie true si lhs a la même valeur que 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.