QOpcUaArgument Class

The OPC UA Argument type. 更多...

头: #include <QOpcUaArgument>
qmake: QT += opcua

公共函数

QOpcUaArgument (const QString & name , const QString & dataTypeId , qint32 valueRank , const QVector<quint32> & arrayDimensions , const QOpcUaLocalizedText & description )
QOpcUaArgument & operator= (const QOpcUaArgument & rhs )
QVector<quint32> arrayDimensions () const
QVector<quint32> & arrayDimensionsRef ()
QString dataTypeId () const
QOpcUaLocalizedText description () const
QString name () const
void setArrayDimensions (const QVector<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.

成员函数文档编制

QOpcUaArgument:: QOpcUaArgument (const QString & name , const QString & dataTypeId , qint32 valueRank , const QVector < quint32 > & arrayDimensions , const QOpcUaLocalizedText & description )

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

QOpcUaArgument &QOpcUaArgument:: operator= (const QOpcUaArgument & rhs )

设置值从 rhs in this argument.

QVector < quint32 > QOpcUaArgument:: arrayDimensions () const

Returns the array dimensions of the argument.

The array dimensions describe the length of each array dimension.

另请参阅 setArrayDimensions ().

QVector < 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.

另请参阅 setDataTypeId ().

QOpcUaLocalizedText QOpcUaArgument:: description () const

Returns the description of the argument.

另请参阅 setDescription ().

QString QOpcUaArgument:: name () const

Returns the name of the argument.

另请参阅 setName ().

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

Sets the array dimensions of the argument to arrayDimensions .

另请参阅 arrayDimensions ().

void QOpcUaArgument:: setDataTypeId (const QString & dataTypeId )

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

另请参阅 dataTypeId ().

void QOpcUaArgument:: setDescription (const QOpcUaLocalizedText & description )

Sets the description of the argument to description .

另请参阅 description ().

void QOpcUaArgument:: setName (const QString & name )

Sets the name of the argument to name .

另请参阅 name ().

void QOpcUaArgument:: setValueRank ( qint32 valueRank )

Sets the value rank of the argument to valueRank .

另请参阅 valueRank ().

qint32 QOpcUaArgument:: valueRank () const

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 ().

QVariant QOpcUaArgument:: operator QVariant () const

Converts this argument to QVariant .

bool QOpcUaArgument:: operator== (const QOpcUaArgument & other ) const

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