Auf dieser Seite

QOpcUaEnumDefinition Class

Der OPC UA-Typ „EnumDefinition“. Mehr...

Header: #include <QOpcUaEnumDefinition>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua
Seit: Qt 6.7

Öffentliche Funktionen

QOpcUaEnumDefinition()
QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)
QOpcUaEnumDefinition(QOpcUaEnumDefinition &&other)
~QOpcUaEnumDefinition()
QList<QOpcUaEnumField> fields() const
void setFields(const QList<QOpcUaEnumField> &fields)
void swap(QOpcUaEnumDefinition &other)
operator QVariant() const
QOpcUaEnumDefinition &operator=(QOpcUaEnumDefinition &&other)
QOpcUaEnumDefinition &operator=(const QOpcUaEnumDefinition &rhs)
bool operator!=(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)
bool operator==(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &rhs)

Ausführliche Beschreibung

Dies ist die „ Qt OPC UA “-Darstellung für den in OPC UA Teil 3 definierten Typ „OPC UA EnumDefinition“. Sie beschreibt einen Aufzählungstyp.

Dokumentation der Mitgliedsfunktionen

QOpcUaEnumDefinition::QOpcUaEnumDefinition()

„Default“ erstellt eine Enum-Definition, für die keine Parameter festgelegt sind.

QOpcUaEnumDefinition::QOpcUaEnumDefinition(const QOpcUaEnumDefinition &other)

Erstellt eine Enum-Definition aus other.

[constexpr noexcept default] QOpcUaEnumDefinition::QOpcUaEnumDefinition(QOpcUaEnumDefinition &&other)

Erstellt eine neue Enum-Definition aus „ other “.

Hinweis: Das Objekt „ other “, aus dem die Daten verschoben wurden, befindet sich in einem teilweise erstellten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.

[noexcept] QOpcUaEnumDefinition::~QOpcUaEnumDefinition()

Löscht dieses Enum-Definitionsobjekt.

QList<QOpcUaEnumField> QOpcUaEnumDefinition::fields() const

Gibt die Felder des Enum-Typs zurück.

Siehe auch „ setFields()“.

void QOpcUaEnumDefinition::setFields(const QList<QOpcUaEnumField> &fields)

Setzt die Felder des Enum-Typs auf „ fields “.

Siehe auch ` fields()`.

[noexcept] void QOpcUaEnumDefinition::swap(QOpcUaEnumDefinition &other)

Ersetzt das Enum-Definitionsobjekt „ other “ durch dieses Enum-Definitionsobjekt. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.

QOpcUaEnumDefinition::operator QVariant() const

Konvertiert diese Enum-Definition in „ QVariant “.

[noexcept] QOpcUaEnumDefinition &QOpcUaEnumDefinition::operator=(QOpcUaEnumDefinition &&other)

Weist „ other “ dieser Instanz von „ QOpcUaEnumDefinition “ 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.

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

Legt die Werte aus „ rhs “ in dieser Enum-Definition fest.

Verwandte Nicht-Mitglieder

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

Gibt „ true “ zurück, wenn „ lhs “ nicht gleich „ rhs “ ist.

[noexcept] bool operator==(const QOpcUaEnumDefinition &lhs, const QOpcUaEnumDefinition &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.