Sur cette page

QOpcUaAttributeOperand Class

Le type d'attribut OPC UA AttributeOperand. Plus d'informations...

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

Fonctions publiques

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)

Description détaillée

L'AttributeOperand est défini dans OPC UA 1.05 partie 4, 7.7.4.4. Elle a le même objectif que QOpcUaSimpleAttributeOperand mais dispose de plus d'options configurables.

Documentation des fonctions membres

QOpcUaAttributeOperand::QOpcUaAttributeOperand()

Default construit un opérande d'attribut sans paramètres définis.

QOpcUaAttributeOperand::QOpcUaAttributeOperand(const QOpcUaAttributeOperand &rhs)

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

QString QOpcUaAttributeOperand::alias() const

Renvoie l'alias de cette QAttributeOperand.

Voir également setAlias().

QOpcUa::NodeAttribute QOpcUaAttributeOperand::attributeId() const

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

Voir aussi setAttributeId().

QList<QOpcUaRelativePathElement> QOpcUaAttributeOperand::browsePath() const

Renvoie le chemin de navigation.

Voir aussi setBrowsePath().

QList<QOpcUaRelativePathElement> &QOpcUaAttributeOperand::browsePathRef()

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

Voir aussi browsePath().

QString QOpcUaAttributeOperand::indexRange() const

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

Voir aussi setIndexRange().

QString QOpcUaAttributeOperand::nodeId() const

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

Voir aussi setNodeId().

void QOpcUaAttributeOperand::setAlias(const QString &alias)

Définit l'alias à alias, ce qui permet d'utiliser cette instance comme opérande pour d'autres opérations dans le filtre.

Voir aussi alias().

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

Définit l'attribut id à attributeId.

Voir aussi attributeId().

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

Définit le chemin relatif d'un nœud commençant par nodeId() à browsePath.

Voir aussi browsePath().

void QOpcUaAttributeOperand::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 QOpcUaAttributeOperand::setNodeId(const QString &nodeId)

Définit l'identifiant du nœud de définition du type à nodeId.

Voir aussi nodeId().

QOpcUaAttributeOperand::operator QVariant() const

Convertit cet opérande d'attribut en QVariant.

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

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

Non-membres apparentés

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

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

Cette fonction a été introduite dans Qt 6.7.

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

Renvoie true si lhs a la même valeur que rhs.

Cette fonction a été introduite dans 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.