QArgument Class

(QOpcUa::QArgument)

The OPC UA Argument type. More...

Header: #include <QtOpcUa/qopcuatype.h>
qmake: QT += opcua

Public Functions

QArgument()
QArgument(const QOpcUa::QArgument &rhs)
QArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QVector<quint32> &arrayDimensions, const QOpcUa::QLocalizedText &description)
~QArgument()
QVector<quint32> arrayDimensions() const
QVector<quint32> &arrayDimensionsRef()
QString dataTypeId() const
QOpcUa::QLocalizedText description() const
QString name() const
void setArrayDimensions(const QVector<quint32> &arrayDimensions)
void setDataTypeId(const QString &dataTypeId)
void setDescription(const QOpcUa::QLocalizedText &description)
void setName(const QString &name)
void setValueRank(qint32 valueRank)
qint32 valueRank() const
QVariant operator QVariant() const
QOpcUa::QArgument &operator=(const QOpcUa::QArgument &rhs)
bool operator==(const QOpcUa::QArgument &other) const

Detailed Description

The OPC UA Argument type.

This is the Qt OPC UA representation for the Argument type defined in OPC-UA part 3, 8.6.

The Argument type is mainly used for the values of the InputArguments and OutputArguments properties which describe the parameters and return values of method nodes.

Member Function Documentation

QArgument::QArgument()

Default constructs an instance of QArgument.

QArgument::QArgument(const QOpcUa::QArgument &rhs)

Default constructs an instance of QArgument.

QArgument::QArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QVector<quint32> &arrayDimensions, const QOpcUa::QLocalizedText &description)

Constructs an argument with name name, data type id dataTypeId, value rank valueRank, array dimensions arrayDimensions and description description.

QArgument::~QArgument()

Destroys the instance of QArgument.

QVector<quint32> QArgument::arrayDimensions() const

Returns the array dimensions of the argument.

The array dimensions describe the length of each array dimension.

See also setArrayDimensions().

QVector<quint32> &QArgument::arrayDimensionsRef()

Returns a reference to the array dimensions of the argument.

QString QArgument::dataTypeId() const

Returns the data type node id of the argument.

See also setDataTypeId().

QOpcUa::QLocalizedText QArgument::description() const

Returns the description of the argument.

See also setDescription().

QString QArgument::name() const

Returns the name of the argument.

See also setName().

void QArgument::setArrayDimensions(const QVector<quint32> &arrayDimensions)

Sets the array dimensions of the argument to arrayDimensions.

See also arrayDimensions().

void QArgument::setDataTypeId(const QString &dataTypeId)

Sets the data type node id of the argument to dataTypeId.

See also dataTypeId().

void QArgument::setDescription(const QOpcUa::QLocalizedText &description)

Sets the description of the argument to description.

See also description().

void QArgument::setName(const QString &name)

Sets the name of the argument to name.

See also name().

void QArgument::setValueRank(qint32 valueRank)

Sets the value rank of the argument to valueRank.

See also valueRank().

qint32 QArgument::valueRank() const

Returns the value rank of the argument. The value rank describes the structure of the value.

ValueRankMeaning
-3Scalar or one dimensional array
-2Scalar or array with any number of dimensions
-1Not an array
0Array with one or more dimensions
1One dimensional array
>1Array with n dimensions

See also setValueRank().

QVariant QArgument::operator QVariant() const

Converts this argument to QVariant.

QOpcUa::QArgument &QArgument::operator=(const QOpcUa::QArgument &rhs)

Sets the values from rhs in this argument.

bool QArgument::operator==(const QOpcUa::QArgument &other) const

Returns true if this argument has the same value as other.

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