Python scripting OLP Core - Enums

    AttributeProperties

 

Enum class defined as bit flags


class AttributeProperties(IntEnum):

  {

    None,

    UserAttribute = 1 << 0,               # visible for the user

    ProcessAttribute = 1 << 1,             # will be downloaded

    OperationAttribute = 1 << 2,           # visible in Operation

    OperationGroupAttribute = 1 << 3,      # visible in Operation Group

    GlobalAttribute = 1 << 4,             # visible in Program

    ReadOnlyAttribute = 1 << 5,           # cannot be modified

    ControllerAttribute = 1 << 6           # Visible in controller (if a controller attribute has flags GLOBAL_ATTRIBUTE or OPERATION_GROUP_ATTRIBUTE or OPERATION_ATTRIBUTE then it will be copied to the program, no inheritance here)

  };


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante