The OPC UA Argument type. More...
Header: | #include <QOpcUaArgument> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
QOpcUaArgument(const QString &name, const QString &dataTypeId, qint32 valueRank, const QList<quint32> &arrayDimensions, const QOpcUaLocalizedText &description) | |
QOpcUaArgument & | operator=(const QOpcUaArgument &rhs) |
QList<quint32> | arrayDimensions() const |
QList<quint32> & | arrayDimensionsRef() |
QString | dataTypeId() const |
QOpcUaLocalizedText | description() const |
QString | name() const |
void | setArrayDimensions(const QList<quint32> &arrayDimensions) |
void | setDataTypeId(const QString &dataTypeId) |
void | setDescription(const QOpcUaLocalizedText &description) |
void | setName(const QString &name) |
void | setValueRank(qint32 valueRank) |
qint32 | valueRank() const |
QVariant | operator QVariant() const |
bool | operator==(const QOpcUaArgument &other) const |
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.
Constructs an argument with name name, data type id dataTypeId, value rank valueRank, array dimensions arrayDimensions and description description.
Sets the values from rhs in this argument.
Returns the array dimensions of the argument.
The array dimensions describe the length of each array dimension.
See also setArrayDimensions().
Returns a reference to the array dimensions of the argument.
Returns the data type node id of the argument.
See also setDataTypeId().
Returns the description of the argument.
See also setDescription().
Returns the name of the argument.
See also setName().
Sets the array dimensions of the argument to arrayDimensions.
See also arrayDimensions().
Sets the data type node id of the argument to dataTypeId.
See also dataTypeId().
Sets the description of the argument to description.
See also description().
Sets the name of the argument to name.
See also name().
Sets the value rank of the argument to valueRank.
See also valueRank().
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 setValueRank().
Converts this argument to QVariant.
Returns true if this argument has the same value as other.