title: Attribute Util description: " implementation of the attribute utilities
AttributeUtil
" implementation of the attribute utilities
AttributeUtil
Canonical path: Utils.General.AttributeUtil.AttributeUtil
implementation of the attribute utilities
get_enum_id_from_string
staticmethod
get the enum ID from the value string
Parameters:
-
attribute_id
(int
) –attribute ID
-
enum_str
(str
) –enum string
Returns:
-
int
–enum ID
get_enum_id_from_value_string
staticmethod
get_enum_id_from_value_string(prop: ParameterProperty) -> int
get the enum ID from the value string
Parameters:
-
prop
(ParameterProperty
) –parameter property
Returns:
-
int
–enum ID
get_enum_value_string_from_id
staticmethod
get_enum_value_string_from_id(prop: ParameterProperty, enum_id: int) -> str
get the enum value string from the ID
Parameters:
-
prop
(ParameterProperty
) –parameter property
-
enum_id
(int
) –enum ID
Returns:
-
str
–enum string
Placeholder