pyuaf.util.structurefielddatatypes

This module defines the datatypes of the fields of structures.

  • Attributes:

    structurefielddatatypes.Variant = 0

    The field is a built-in type (a Variant).

    structurefielddatatypes.GenericStructure = 1

    The field is a GenericStructureValue.

    structurefielddatatypes.GenericStructureArray = 2

    The field is a list of GenericStructureValue instances (or a GenericStructureVector, which is basically the same).

    structurefielddatatypes.GenericUnion = 3

    The field is a GenericUnionValue.

    structurefielddatatypes.GenericUnionArray = 4

    The field is a list of GenericUnionValue instances (or a GenericUnionVector, which is basically the same).

    structurefielddatatypes.GenericOptionSet = 5

    The field is a GenericOptionSet.

    structurefielddatatypes.GenericUnionArray = 4

    The field is a GenericOptionSetArray.

    structurefielddatatypes.Empty = 7

    The field is empty.

  • Functions:

    pyuaf.util.structurefielddatatypes.toString(datatype)

    Get a string representation of the StructureFieldDataType.

    Parameters:datatype (int) – The datatype, e.g. GenericUnionArray.
    Returns:The name of the datatype, e.g. ‘GenericUnionArray’.
    Return type:str