Sur cette page

QOpcUaEUInformation Class

Le type « EURange » d'OPC UA. En savoir plus...

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

Fonctions publiques

QOpcUaEUInformation()
QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)
QOpcUaEUInformation(const QOpcUaEUInformation &rhs)
QOpcUaLocalizedText description() const
QOpcUaLocalizedText displayName() const
QString namespaceUri() const
void setDescription(const QOpcUaLocalizedText &description)
void setDisplayName(const QOpcUaLocalizedText &displayName)
void setNamespaceUri(const QString &namespaceUri)
void setUnitId(qint32 unitId)
qint32 unitId() const
operator QVariant() const
QOpcUaEUInformation &operator=(const QOpcUaEUInformation &rhs)
bool operator==(const QOpcUaEUInformation &rhs) const

Description détaillée

Il s'agit de la représentation « Qt OPC UA » du type OPC UA EUInformation défini dans la norme OPC UA 1.05, partie 8, section 5.6.3. Les valeurs EUInformation contiennent des informations sur les unités et sont principalement utilisées comme propriété d'un nœud doté d'un attribut de valeur numérique. Ces informations peuvent, par exemple, servir à ajouter du texte et des infobulles aux éléments de l'interface graphique.

Documentation des fonctions membres

QOpcUaEUInformation::QOpcUaEUInformation()

La valeur par défaut génère une information relative à l'UE sans aucun paramètre défini.

QOpcUaEUInformation::QOpcUaEUInformation(const QString &namespaceUri, qint32 unitId, const QOpcUaLocalizedText &displayName, const QOpcUaLocalizedText &description)

Crée un objet « EUinformation » avec l'URI d'espace de noms namespaceUri, l'identifiant de l'unité unitId, le nom d'affichage displayName et la description description.

QOpcUaEUInformation::QOpcUaEUInformation(const QOpcUaEUInformation &rhs)

Génère une fiche d'information sur l'UE à partir de rhs.

QOpcUaLocalizedText QOpcUaEUInformation::description() const

Renvoie la description de l'unité, par exemple « degré Celsius ».

Voir également setDescription().

QOpcUaLocalizedText QOpcUaEUInformation::displayName() const

Renvoie le nom d'affichage de l'unité, par exemple °C.

Voir aussi setDisplayName().

QString QOpcUaEUInformation::namespaceUri() const

Renvoie l'URI de l'espace de noms de l'unité.

Voir aussi setNamespaceUri().

void QOpcUaEUInformation::setDescription(const QOpcUaLocalizedText &description)

Définit la description de l'unité sur « description ».

Voir également description().

void QOpcUaEUInformation::setDisplayName(const QOpcUaLocalizedText &displayName)

Définit le nom d'affichage de l'unité sur « displayName ».

Voir aussi displayName().

void QOpcUaEUInformation::setNamespaceUri(const QString &namespaceUri)

Définit l'URI d'espace de noms de l'unité sur namespaceUri.

Voir également namespaceUri().

void QOpcUaEUInformation::setUnitId(qint32 unitId)

Définit l'identifiant lisible par machine de l'unité sur unitId.

Voir également unitId().

qint32 QOpcUaEUInformation::unitId() const

Renvoie l'identifiant lisible par machine de l'unité.

Voir aussi setUnitId().

QOpcUaEUInformation::operator QVariant() const

Convertit ces informations de l'UE en QVariant.

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

Permet de définir les valeurs issues de rhs dans cette fiche d'information de l'UE.

bool QOpcUaEUInformation::operator==(const QOpcUaEUInformation &rhs) const

Renvoie « true » si cette information relative à l'UE 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.