QOpcUaStructureField Class

The OPC UA StructureField type. More...

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

Public Functions

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
QVariant operator QVariant() const
QOpcUaStructureField &operator=(QOpcUaStructureField &&other)
QOpcUaStructureField &operator=(const QOpcUaStructureField &other)
bool operator!=(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs)
bool operator==(const QOpcUaStructureField &lhs, const QOpcUaStructureField &rhs)

Detailed Description

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

Member Function Documentation

[explicit] QOpcUaStructureField::QOpcUaStructureField(qint32 valueRank = -1)

Constructs a structure field with valueRank.

QOpcUaStructureField::QOpcUaStructureField(const QOpcUaStructureField &other)

Constructs a structure field from other.

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

Move-constructs a new structure field 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] QOpcUaStructureField::~QOpcUaStructureField()

Destroys this structure field object.

QList<quint32> QOpcUaStructureField::arrayDimensions() const

Returns the array dimenstions of the struct field.

See also setArrayDimensions().

QString QOpcUaStructureField::dataType() const

Returns the data type node ID of the struct field.

See also setDataType().

QOpcUaLocalizedText QOpcUaStructureField::description() const

Returns the description of the struct field.

See also setDescription().

bool QOpcUaStructureField::isOptional() const

Returns true if the struct field is optional.

See also setIsOptional().

quint32 QOpcUaStructureField::maxStringLength() const

Returns the maximum string length of the struct field.

See also setMaxStringLength().

QString QOpcUaStructureField::name() const

Returns the name of the struct field.

See also setName().

void QOpcUaStructureField::setArrayDimensions(const QList<quint32> &arrayDimensions)

Sets the array dimensions of the struct field to arrayDimensions.

See also arrayDimensions().

void QOpcUaStructureField::setDataType(const QString &dataTypeId)

Sets the data type node ID of the struct field to dataTypeId.

See also dataType().

void QOpcUaStructureField::setDescription(const QOpcUaLocalizedText &description)

Sets the description of the struct field to description.

See also description().

void QOpcUaStructureField::setIsOptional(bool isOptional)

Sets the optional flag of the struct field to isOptional.

See also isOptional().

void QOpcUaStructureField::setMaxStringLength(quint32 maxStringLength)

Sets the maximum string length of the struct field to maxStringLength.

See also maxStringLength().

void QOpcUaStructureField::setName(const QString &name)

Sets the name of the struct field to name.

See also name().

void QOpcUaStructureField::setValueRank(qint32 valueRank)

Sets the value rank of the struct field to valueRank.

See also valueRank().

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

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

qint32 QOpcUaStructureField::valueRank() const

Returns the value rank of the struct field.

See also setValueRank().

QVariant QOpcUaStructureField::operator QVariant() const

Converts this structure field to QVariant.

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

Move-assigns other to this QOpcUaStructureField 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.

QOpcUaStructureField &QOpcUaStructureField::operator=(const QOpcUaStructureField &other)

Sets the values from other in this structure field.

Related Non-Members

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

Returns true lhs is not equal to rhs.

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

Returns true 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.