IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QOpcUaArgument Class

The OPC UA Argument type.

This class was introduced in Qt 5.11.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

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

Returns the data type node id of the argument.

See Also

See also setDataTypeId()

QOpcUaLocalizedText QOpcUaArgument::description() const

Returns the description of the argument.

See Also

See also setDescription()

QString QOpcUaArgument::name() const

Returns the name of the argument.

See Also

See also setName()

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

Sets the array dimensions of the argument to arrayDimensions.

See Also

See also arrayDimensions()

void QOpcUaArgument::setDataTypeId(const QString &dataTypeId)

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

See Also

See also dataTypeId()

void QOpcUaArgument::setDescription(const QOpcUaLocalizedText &description)

Sets the description of the argument to description.

See Also

See also description()

void QOpcUaArgument::setName(const QString &name)

Sets the name of the argument to name.

See Also

See also name()

void QOpcUaArgument::setValueRank(qint32 valueRank)

Sets the value rank of the argument to valueRank.

See Also

See also 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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+