PySide6.QtOpcUa.QOpcUaStructureDefinition

class QOpcUaStructureDefinition

The OPC UA StructureDefinition type. More

Added in version 6.7.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

This is the Qt OPC UA representation for the OPC UA StructureDefinition type defined in OPC UA part 3. It describes the structure of a structured type.

class StructureType
__init__()

Default constructs a structure definition with no parameters set.

__init__(rhs)
Parameters:

rhsQOpcUaStructureDefinition

Constructs a structure definition from rhs.

baseDataType()
Return type:

str

Returns the node id of the base data type of the struct type.

defaultEncodingId()
Return type:

str

Returns the default encoding node ID for the struct type.

fields()
Return type:

.list of QOpcUaStructureField

Returns the fields of the struct type.

See also

setFields()

__ne__(rhs)
Parameters:

rhsQOpcUaStructureDefinition

Return type:

bool

Returns true if lhs is not equal to rhs.

__eq__(rhs)
Parameters:

rhsQOpcUaStructureDefinition

Return type:

bool

Returns true if lhs is equal to rhs.

setBaseDataType(baseDataType)
Parameters:

baseDataType – str

Sets the base data type node id of the type to baseDataType.

See also

baseDataType()

setDefaultEncodingId(defaultEncodingId)
Parameters:

defaultEncodingId – str

Sets the default encoding node ID of the struct type to defaultEncodingId.

setFields(fields)
Parameters:

fields – .list of QOpcUaStructureField

Sets the fields of the struct type to fields.

See also

fields()

setStructureType(structureType)
Parameters:

structureTypeStructureType

Sets the structure type to structureType.

See also

structureType()

structureType()
Return type:

StructureType

Returns the structure type of the struct type.

swap(other)
Parameters:

otherQOpcUaStructureDefinition

Swaps structure definition object other with this structure definition object. This operation is very fast and never fails.