The OPC UA StructureField type. 更多...
头: | #include <QOpcUaStructureField> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.7 |
QOpcUaStructureField (qint32 valueRank = -1) | |
QOpcUaStructureField (const QOpcUaStructureField & other ) | |
QOpcUaStructureField (QOpcUaStructureField && other ) | |
~QOpcUaStructureField () | |
QList<quint32> | arrayDimensions () const |
QString | dataType () const |
QOpcUaLocalizedText | description () const |
bool | isOptional () const |
quint32 | maxStringLength () const |
QString | name () const |
void | setArrayDimensions (const QList<quint32> & arrayDimensions ) |
void | setDataType (const QString & dataTypeId ) |
void | setDescription (const QOpcUaLocalizedText & description ) |
void | setIsOptional (bool isOptional ) |
void | setMaxStringLength (quint32 maxStringLength ) |
void | setName (const QString & name ) |
void | setValueRank (qint32 valueRank ) |
void | swap (QOpcUaStructureField & other ) |
qint32 | valueRank () const |
QVariant | operator QVariant () const |
QOpcUaStructureField & | operator= (QOpcUaStructureField && other ) |
QOpcUaStructureField & | operator= (const QOpcUaStructureField & other ) |
bool | operator!= (const QOpcUaStructureField & lhs , const QOpcUaStructureField & rhs ) |
bool | operator== (const QOpcUaStructureField & lhs , const QOpcUaStructureField & rhs ) |
This is the Qt OPC UA representation for the OPC UA StructureField type defined in OPC UA part 3. It describes a field of a structured type.
[explicit]
QOpcUaStructureField::
QOpcUaStructureField
(
qint32
valueRank
= -1)
Constructs a structure field with valueRank .
Constructs a structure field from other .
[noexcept]
QOpcUaStructureField::
QOpcUaStructureField
(
QOpcUaStructureField
&&
other
)
Move-constructs a new structure field from other .
注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
[noexcept]
QOpcUaStructureField::
~QOpcUaStructureField
()
Destroys this structure field object.
Returns the array dimenstions of the struct field.
另请参阅 setArrayDimensions ().
Returns the data type node ID of the struct field.
另请参阅 setDataType ().
Returns the description of the struct field.
另请参阅 setDescription ().
返回
true
if the struct field is optional.
另请参阅 setIsOptional ().
Returns the maximum string length of the struct field.
另请参阅 setMaxStringLength ().
Returns the name of the struct field.
另请参阅 setName ().
Sets the array dimensions of the struct field to arrayDimensions .
另请参阅 arrayDimensions ().
Sets the data type node ID of the struct field to dataTypeId .
另请参阅 dataType ().
Sets the description of the struct field to description .
另请参阅 description ().
Sets the optional flag of the struct field to isOptional .
另请参阅 isOptional ().
Sets the maximum string length of the struct field to maxStringLength .
另请参阅 maxStringLength ().
Sets the name of the struct field to name .
另请参阅 name ().
Sets the value rank of the struct field to valueRank .
另请参阅 valueRank ().
[noexcept]
void
QOpcUaStructureField::
swap
(
QOpcUaStructureField
&
other
)
Swaps structure field object other with this structure field object. This operation is very fast and never fails.
Returns the value rank of the struct field.
另请参阅 setValueRank ().
Converts this structure field to QVariant .
[noexcept]
QOpcUaStructureField
&QOpcUaStructureField::
operator=
(
QOpcUaStructureField
&&
other
)
移动赋值 other 到此 QOpcUaStructureField 实例。
注意: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
设置值从 other in this structure field.
[noexcept]
bool
operator!=
(const
QOpcUaStructureField
&
lhs
, const
QOpcUaStructureField
&
rhs
)
返回
true
lhs
不等于
rhs
.
[noexcept]
bool
operator==
(const
QOpcUaStructureField
&
lhs
, const
QOpcUaStructureField
&
rhs
)
返回
true
lhs
等于
rhs
.