QOpcUaSimpleAttributeOperand Class
Le type « SimpleAttributeOperand » d'OPC UA. En savoir plus...
| 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) |
Éléments non membres associés
(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 défini dans la norme OPC UA 1.05, partie 4, section 7.7.4.5. Il est utilisé lorsqu'un attribut de nœud est requis en tant qu'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 :
QOpcUaSimpleAttributeOperand("Severity");Documentation des fonctions membres
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand()
La valeur par défaut crée un opérande d'attribut simple sans aucun paramètre défini.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(QOpcUa::NodeAttribute attributeId, const QString &typeId = QStringLiteral("ns=0;i=2041"))
Crée un opérande d'attribut simple pour l'attribut « attributeId » d'un objet ou d'une variable de type « typeId ». Cela peut être utilisé pour demander le ConditionId dans un filtre d'événements, comme décrit dans la norme OPC UA 1.05, partie 9, section 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)
Crée un opérande d'attribut simple pour l'attributeId d'attribut de l'enfant direct dont le nom de navigation est « name » dans l'espace de noms « namespaceIndex ». « typeId » correspond à l'identifiant du nœud de définition de type. L'opérande sera limité aux instances de type « typeId » ou à un sous-type de celui-ci.
QOpcUaSimpleAttributeOperand::QOpcUaSimpleAttributeOperand(const QOpcUaSimpleAttributeOperand &rhs)
Crée un opérande d'attribut simple à partir de rhs.
QOpcUa::NodeAttribute QOpcUaSimpleAttributeOperand::attributeId() const
Renvoie l'attribut du nœud vers lequel pointe ` browsePath `.
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 caractères correspondant à la plage d'index.
Voir également setIndexRange().
void QOpcUaSimpleAttributeOperand::setAttributeId(QOpcUa::NodeAttribute attributeId)
Définit l'attribut « id » sur « attributeId ».
Voir également attributeId().
void QOpcUaSimpleAttributeOperand::setBrowsePath(const QList<QOpcUaQualifiedName> &browsePath)
Définit le chemin d'accès au nœud contenant l'attribut sur browsePath.
Voir également browsePath().
void QOpcUaSimpleAttributeOperand::setIndexRange(const QString &indexRange)
Définit la chaîne de plage d'index utilisée pour identifier une valeur unique ou un sous-ensemble de la valeur de l'attribut sur indexRange.
Voir également indexRange().
void QOpcUaSimpleAttributeOperand::setTypeId(const QString &typeId)
Définit l'identifiant du nœud de définition de type sur typeId. L'opérande sera de ce type ou d'un de ses sous-types.
Voir également 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 provenant de rhs dans cet opérande d'attribut simple.
Éléments non membres associé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.