The OPC UA Argument type. 更多...
头: | #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 ) | |
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 |
QOpcUaArgument & | operator= (const QOpcUaArgument & rhs ) |
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 .
Returns the array dimensions of the argument.
The array dimensions describe the length of each array dimension.
另请参阅 setArrayDimensions ().
Returns a reference to the array dimensions of the argument.
Returns the data type node id of the argument.
另请参阅 setDataTypeId ().
Returns the description of the argument.
另请参阅 setDescription ().
Returns the name of the argument.
另请参阅 setName ().
Sets the array dimensions of the argument to arrayDimensions .
另请参阅 arrayDimensions ().
Sets the data type node id of the argument to dataTypeId .
另请参阅 dataTypeId ().
Sets the description of the argument to description .
另请参阅 description ().
Sets the name of the argument to name .
另请参阅 name ().
Sets the value rank of the argument to valueRank .
另请参阅 valueRank ().
Returns the value rank of the argument. The value rank describes the structure of the value.
ValueRank | 含义 |
---|---|
-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 |
另请参阅 setValueRank ().
Converts this argument to QVariant .
设置值从 rhs in this argument.
Returns true if this argument has the same value as other .