QOpcUaEnumField Class
Der OPC-UA-Typ „StructureDefinition“. Mehr...
| Header: | #include <QOpcUaEnumField> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Seit: | Qt 6.7 |
Öffentliche Funktionen
| QOpcUaEnumField() | |
| QOpcUaEnumField(const QOpcUaEnumField &other) | |
| QOpcUaEnumField(QOpcUaEnumField &&other) | |
| ~QOpcUaEnumField() | |
| QOpcUaLocalizedText | description() const |
| QOpcUaLocalizedText | displayName() const |
| QString | name() const |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setDisplayName(const QOpcUaLocalizedText &displayName) |
| void | setName(const QString &name) |
| void | setValue(qint64 value) |
| void | swap(QOpcUaEnumField &other) |
| qint64 | value() const |
| operator QVariant() const | |
| QOpcUaEnumField & | operator=(QOpcUaEnumField &&other) |
| QOpcUaEnumField & | operator=(const QOpcUaEnumField &rhs) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
| bool | operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs) |
Ausführliche Beschreibung
Dies ist die „ Qt OPC UA “-Darstellung für den in OPC UA Teil 3 definierten Typ „OPC UA EnumField“. Sie beschreibt ein Feld vom Typ „enum“.
Dokumentation der Mitgliedsfunktionen
QOpcUaEnumField::QOpcUaEnumField()
„Default“ erstellt ein Enum-Feld, für das keine Parameter festgelegt sind.
QOpcUaEnumField::QOpcUaEnumField(const QOpcUaEnumField &other)
Erstellt ein Enum-Feld aus other.
[constexpr noexcept default] QOpcUaEnumField::QOpcUaEnumField(QOpcUaEnumField &&other)
Erstellt ein neues Enum-Feld aus „ other “.
Hinweis: Das Objekt „ other “, aus dem die Verschiebung erfolgt ist, befindet sich in einem teilweise initialisierten Zustand, in dem nur die Zerstörung und die Zuweisung eines neuen Werts zulässig sind.
[noexcept] QOpcUaEnumField::~QOpcUaEnumField()
Dieses Enum-Definitionsobjekt löschen.
QOpcUaLocalizedText QOpcUaEnumField::description() const
Gibt die Beschreibung des Enum-Feldes zurück.
Siehe auch ` setDescription()`.
QOpcUaLocalizedText QOpcUaEnumField::displayName() const
Gibt den Anzeigenamen des Enum-Feldes zurück.
Siehe auch ` setDisplayName()`.
QString QOpcUaEnumField::name() const
Gibt den Namen des Enum-Feldes zurück.
Siehe auch ` setName()`.
void QOpcUaEnumField::setDescription(const QOpcUaLocalizedText &description)
Setzt die Beschreibung des Enum-Feldes auf „ description “.
Siehe auch description().
void QOpcUaEnumField::setDisplayName(const QOpcUaLocalizedText &displayName)
Legt den Anzeigenamen des Enum-Feldes auf „ displayName “ fest.
Siehe auch „ displayName()“.
void QOpcUaEnumField::setName(const QString &name)
Legt den Namen des Enum-Feldes auf „ name “ fest.
Siehe auch ` name()`.
void QOpcUaEnumField::setValue(qint64 value)
Setzt den Enum-Wert des Enum-Feldes auf „ value “.
Siehe auch ` value()`.
[noexcept] void QOpcUaEnumField::swap(QOpcUaEnumField &other)
Tauscht das Enum-Feldobjekt „ other “ gegen dieses Enum-Feldobjekt aus. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
qint64 QOpcUaEnumField::value() const
Gibt den Enum-Wert des Enum-Feldes zurück.
Siehe auch ` setValue()`.
QOpcUaEnumField::operator QVariant() const
Wandelt dieses Enum-Feld in „ QVariant “ um.
[noexcept] QOpcUaEnumField &QOpcUaEnumField::operator=(QOpcUaEnumField &&other)
Weist „ other “ dieser „ QOpcUaEnumField “-Instanz zu.
Hinweis: Das Objekt „ other “, aus dem die Zuweisung erfolgt, wird in einen teilweise initialisierten Zustand versetzt, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
QOpcUaEnumField &QOpcUaEnumField::operator=(const QOpcUaEnumField &rhs)
Legt die Werte aus „ rhs “ in diesem Enum-Feld fest.
Verwandte Nicht-Mitglieder
[noexcept] bool operator!=(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Gibt „ true “ zurück, wenn „ lhs “ nicht gleich „ rhs “ ist.
[noexcept] bool operator==(const QOpcUaEnumField &lhs, const QOpcUaEnumField &rhs)
Gibt „ true “ zurück, wenn „ lhs “ gleich „ rhs “ ist.
© 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.