QOpcUaStructureField Class
Der OPC UA-Typ „StructureField“. Mehr...
| Header: | #include <QOpcUaStructureField> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
| Seit: | Qt 6.7 |
Öffentliche Funktionen
| QOpcUaStructureField(qint32 valueRank = -1) | |
| QOpcUaStructureField(const QOpcUaStructureField &other) | |
| QOpcUaStructureField(QOpcUaStructureField &&other) | |
| ~QOpcUaStructureField() | |
| QList<quint32> | arrayDimensions() const |
| QString | dataType() const |
| QOpcUaLocalizedText | description() const |
| bool | isOptional() const |
| quint32 | maxStringLength() const |
| QString | name() const |
| void | setArrayDimensions(const QList<quint32> &arrayDimensions) |
| void | setDataType(const QString &dataTypeId) |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setIsOptional(bool isOptional) |
| void | setMaxStringLength(quint32 maxStringLength) |
| void | setName(const QString &name) |
| void | setValueRank(qint32 valueRank) |
| void | swap(QOpcUaStructureField &other) |
| qint32 | valueRank() const |
| operator QVariant() const | |
| QOpcUaStructureField & | operator=(QOpcUaStructureField &&other) |
| QOpcUaStructureField & | operator=(const QOpcUaStructureField &other) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs) |
| bool | operator==(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs) |
Detaillierte Beschreibung
Dies ist die Darstellung des Typs „ Qt OPC UA “ für den in OPC UA Teil 3 definierten OPC-UA-Typ „StructureField“. Sie beschreibt ein Feld eines strukturierten Typs.
Dokumentation der Mitgliedsfunktionen
[explicit] QOpcUaStructureField::QOpcUaStructureField(qint32 valueRank = -1)
Erstellt ein Strukturfeld mit „ valueRank “.
QOpcUaStructureField::QOpcUaStructureField(const QOpcUaStructureField &other)
Erstellt ein Strukturfeld aus „ other “.
[constexpr noexcept default] QOpcUaStructureField::QOpcUaStructureField(QOpcUaStructureField &&other)
Erstellt ein neues Strukturfeld aus „ other “ mittels „Move“.
Hinweis: Das Objekt „ other “, aus dem die Struktur verschoben wurde, befindet sich in einem teilweise gebildeten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
[noexcept] QOpcUaStructureField::~QOpcUaStructureField()
Löscht dieses Strukturfeldobjekt.
QList<quint32> QOpcUaStructureField::arrayDimensions() const
Gibt die Array-Dimensionen des Strukturfeldes zurück.
Siehe auch ` setArrayDimensions()`.
QString QOpcUaStructureField::dataType() const
Gibt die Datentyp-Knoten-ID des Strukturfeldes zurück.
Siehe auch ` setDataType()`.
QOpcUaLocalizedText QOpcUaStructureField::description() const
Gibt die Beschreibung des Strukturfeldes zurück.
Siehe auch ` setDescription()`.
bool QOpcUaStructureField::isOptional() const
Gibt „ true “ zurück, wenn das Strukturfeld optional ist.
Siehe auch ` setIsOptional()`.
quint32 QOpcUaStructureField::maxStringLength() const
Gibt die maximale Zeichenfolgenlänge des Strukturfelds zurück.
Siehe auch ` setMaxStringLength()`.
QString QOpcUaStructureField::name() const
Gibt den Namen des Strukturfelds zurück.
Siehe auch ` setName()`.
void QOpcUaStructureField::setArrayDimensions(const QList<quint32> &arrayDimensions)
Legt die Array-Dimensionen des Strukturfelds auf „ arrayDimensions “ fest.
Siehe auch arrayDimensions().
void QOpcUaStructureField::setDataType(const QString &dataTypeId)
Setzt die Datentyp-Knoten-ID des Strukturfelds auf „ dataTypeId “.
Siehe auch ` dataType()`.
void QOpcUaStructureField::setDescription(const QOpcUaLocalizedText &description)
Setzt die Beschreibung des Strukturfelds auf „ description “.
Siehe auch description().
void QOpcUaStructureField::setIsOptional(bool isOptional)
Setzt das optionale Flag des Strukturfeldes auf „ isOptional “.
Siehe auch ` isOptional()`.
void QOpcUaStructureField::setMaxStringLength(quint32 maxStringLength)
Legt die maximale Zeichenfolgenlänge des Strukturfeldes auf „ maxStringLength “ fest.
Siehe auch maxStringLength().
void QOpcUaStructureField::setName(const QString &name)
Legt den Namen des Strukturfelds auf „ name “ fest.
Siehe auch ` name()`.
void QOpcUaStructureField::setValueRank(qint32 valueRank)
Setzt den Wert „rank“ des Strukturfeldes auf „ valueRank “.
Siehe auch ` valueRank()`.
[noexcept] void QOpcUaStructureField::swap(QOpcUaStructureField &other)
Tauscht das Strukturfeldobjekt other gegen dieses Strukturfeldobjekt aus. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
qint32 QOpcUaStructureField::valueRank() const
Gibt den Rang des Feldes der Struktur zurück.
Siehe auch ` setValueRank()`.
QOpcUaStructureField::operator QVariant() const
Konvertiert dieses Strukturfeld in „ QVariant “.
[noexcept] QOpcUaStructureField &QOpcUaStructureField::operator=(QOpcUaStructureField &&other)
Weist „ other “ dieser Instanz von „ QOpcUaStructureField “ zu.
Hinweis: Das Objekt „ other “, aus dem die Zuweisung erfolgt ist, wird in einen teilweise initialisierten Zustand versetzt, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.
QOpcUaStructureField &QOpcUaStructureField::operator=(const QOpcUaStructureField &other)
Setzt die Werte aus „ other “ in diesem Strukturfeld.
Verwandte Nicht-Mitglieder
[noexcept] bool operator!=(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs)
Gibt zurück: true „ lhs “ ist nicht gleich rhs.
[noexcept] bool operator==(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs)
Gibt zurück: „ true “ – „ lhs “ entspricht „ 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.