hvl_ccb.utils.enum
- class AutoNumberNameEnum(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
hvl_ccb.utils.enum.NameEnum
,aenum.AutoNumberEnum
Auto-numbered enum with names used as string representation, and with lookup and equality based on this representation.
- class BoolEnum(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
hvl_ccb.utils.enum.NameEnum
- BoolEnum inherits from NameEnum and the type of the first value is
enforced to be ‘boolean’. For bool()-operation the __bool__ is redefined here.
- class NameEnum(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
hvl_ccb.utils.enum.StrEnumBase
Enum with names used as string representation, and with lookup and equality based on this representation.
- class RangeEnum(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
float
,hvl_ccb.utils.enum.ValueEnum
Range enumeration inherit from ValueEnum, find suitable voltage/current/resistance input range for devices such as multimeter and oscilloscope
- class StrEnumBase(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
aenum.Enum
String representation-based equality and lookup.
- class ValueEnum(value=<no_arg>, names=None, module=None, type=None, start=1, boundary=None)[source]
Bases:
hvl_ccb.utils.enum.StrEnumBase
Enum with string representation of values used as string representation, and with lookup and equality based on this representation.
Attention: to avoid errors, best use together with unique enum decorator.