QOpcUaStructureDefinition Class

The OPC UA StructureDefinition type. More...

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

Public Functions

QOpcUaStructureDefinition()
QOpcUaStructureDefinition(const QOpcUaStructureDefinition &rhs)
QOpcUaStructureDefinition(QOpcUaStructureDefinition &&other)
~QOpcUaStructureDefinition()
QString baseDataType() const
QString defaultEncodingId() const
QList<QOpcUaStructureField> fields() const
void setBaseDataType(const QString &baseDataType)
void setDefaultEncodingId(const QString &defaultEncodingId)
void setFields(const QList<QOpcUaStructureField> &fields)
void setStructureType(const QOpcUaStructureDefinition::StructureType &structureType)
QOpcUaStructureDefinition::StructureType structureType() const
void swap(QOpcUaStructureDefinition &other)
QVariant operator QVariant() const
QOpcUaStructureDefinition &operator=(QOpcUaStructureDefinition &&other)
QOpcUaStructureDefinition &operator=(const QOpcUaStructureDefinition &rhs)
bool operator!=(const QOpcUaStructureDefinition &lhs, const QOpcUaStructureDefinition &rhs)
bool operator==(const QOpcUaStructureDefinition &lhs, const QOpcUaStructureDefinition &rhs)

Detailed Description

This is the Qt OPC UA representation for the OPC UA StructureDefinition type defined in OPC UA part 3. It describes the structure of a structured type.

Member Function Documentation

QOpcUaStructureDefinition::QOpcUaStructureDefinition()

Default constructs a structure definition with no parameters set.

QOpcUaStructureDefinition::QOpcUaStructureDefinition(const QOpcUaStructureDefinition &rhs)

Constructs a structure definition from rhs.

[noexcept] QOpcUaStructureDefinition::QOpcUaStructureDefinition(QOpcUaStructureDefinition &&other)

Move-constructs a new structure definition from other.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

[noexcept] QOpcUaStructureDefinition::~QOpcUaStructureDefinition()

Destroys this structure definition object.

QString QOpcUaStructureDefinition::baseDataType() const

Returns the node id of the base data type of the struct type.

See also setBaseDataType().

QString QOpcUaStructureDefinition::defaultEncodingId() const

Returns the default encoding node ID for the struct type.

See also setDefaultEncodingId().

QList<QOpcUaStructureField> QOpcUaStructureDefinition::fields() const

Returns the fields of the struct type.

See also setFields().

void QOpcUaStructureDefinition::setBaseDataType(const QString &baseDataType)

Sets the base data type node id of the type to baseDataType.

See also baseDataType().

void QOpcUaStructureDefinition::setDefaultEncodingId(const QString &defaultEncodingId)

Sets the default encoding node ID of the struct type to defaultEncodingId.

See also defaultEncodingId().

void QOpcUaStructureDefinition::setFields(const QList<QOpcUaStructureField> &fields)

Sets the fields of the struct type to fields.

See also fields().

void QOpcUaStructureDefinition::setStructureType(const QOpcUaStructureDefinition::StructureType &structureType)

Sets the structure type to structureType.

See also structureType().

QOpcUaStructureDefinition::StructureType QOpcUaStructureDefinition::structureType() const

Returns the structure type of the struct type.

See also setStructureType().

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

Swaps structure definition object other with this structure definition object. This operation is very fast and never fails.

QVariant QOpcUaStructureDefinition::operator QVariant() const

Converts this structure definition to QVariant.

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

Move-assigns other to this QOpcUaStructureDefinition instance.

Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.

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

Sets the values from rhs in this structure definition.

Related Non-Members

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

Returns true if lhs is not equal to rhs.

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

Returns true if lhs is equal to rhs.

© 2024 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.