QOpcUaArgument Class▲
-
Header: QOpcUaArgument
-
Since: Qt 5.11
-
qmake: QT += opcua
Detailed Description▲
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▲
QOpcUaArgument::QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description)▲
Constructs an argument with name name, data type id dataTypeId, value rank valueRank, array dimensions arrayDimensions and description description.
QList<quint32> QOpcUaArgument::arrayDimensions() const▲
Returns the array dimensions of the argument.
The array dimensions describe the length of each array dimension.
See Also▲
See also setArrayDimensions()
QList<quint32> &QOpcUaArgument::arrayDimensionsRef()▲
Returns a reference to the array dimensions of the argument.
QString QOpcUaArgument::dataTypeId() const▲
QOpcUaLocalizedText QOpcUaArgument::description() const▲
QString QOpcUaArgument::name() const▲
void QOpcUaArgument::setArrayDimensions(const QList<quint32> &arrayDimensions)▲
void QOpcUaArgument::setDataTypeId(const QString &dataTypeId)▲
void QOpcUaArgument::setDescription(const QOpcUaLocalizedText &description)▲
void QOpcUaArgument::setName(const QString &name)▲
void QOpcUaArgument::setValueRank(qint32 valueRank)▲
qint32 QOpcUaArgument::valueRank() const▲
Returns the value rank of the argument. The value rank describes the structure of the value.
ValueRank |
Meaning |
---|---|
-3 |
Scalar or one dimensional array |
-2 |
Scalar or array with any number of dimensions |
-1 |
Not an array |
0 |
Array with one or more dimensions |
1 |
One dimensional array |
>1 |
Array with n dimensions |
See Also▲
See also setValueRank()
QVariant QOpcUaArgument::operator QVariant() const▲
Converts this argument to QVariant.
QOpcUaArgument &QOpcUaArgument::operator=(const QOpcUaArgument &rhs)▲
Sets the values from rhs in this argument.
bool QOpcUaArgument::operator==(const QOpcUaArgument &other) const▲
Returns true if this argument has the same value as other.