|
TReK Python
5.3.3
Telemetry/Command API
|
This class maps unsigned integer values to strings for enumeration. More...
Inherits BaseEnumerator.
Public Member Functions | |
Initialize / Finalize | |
Functions handling class initialization and finalization. | |
| def | RangeEnumerator ( Optional[RangeEnumerator] enumerator=None, Optional[c_void_p] native_ptr=None, is_clone: bool=False -> def -> def -> def ) -> def |
| Class initializer. More... | |
| def | __eq__ (enumerator: object -> bool -> def -> def ) -> def |
| Equality operator "==". More... | |
| def | clone ( -> RangeEnumerator -> def -> def ) -> def |
| Creates and returns an extact copy of the object. More... | |
| def | copy (copy_from: object -> None -> def -> def ) -> def |
| Copies the contents of the provided 'copy_from' Enumerator. More... | |
| def | initialize ( -> None -> def -> def ) -> def |
| Initializes the object. More... | |
| def | load_file (filename: str -> None -> def -> def ) -> def |
| Loads the RangeEnumerator definition from the specified file. More... | |
| def | save_file (filename: str -> None -> def -> def ) -> def |
| Saves the RangeEnumerator definition to the specified file. More... | |
Enumeration Values | |
Functions handling enumeration names and values. | |
| def | add_enum (int_value: int, str_value: str, end_value: int=0 -> None -> def -> def ) -> def |
| Adds the string values as enumeration for the unsigned integer value. More... | |
| def | get_number_of_enumerations ( -> int -> def -> def ) -> def |
| Returns the current number of enumerations. More... | |
| def | get_enum_value (enum_name: str -> int -> def -> def ) -> def |
| Finds the corresponding unsigned integer value for the specified string. More... | |
| def | get_enum_name (enum_value: int -> str -> def -> def ) -> def |
| Finds the corresponding string value for the specified unsigned integer. More... | |
| def | get_enum_names ( -> list[str] -> def -> def ) -> def |
| Gets a list of the string enumerations. More... | |
| def | get_enum_values ( -> list[int] -> def -> def ) -> def |
| Not Implemented for RangeEnumerator. More... | |
| def | get_enum_ranges ( -> List[EnumeratorRangePoint] -> def -> def ) -> def |
| Gets a list of the begin and end values for which enumerators exist. More... | |
| def | remove_enum_all ( -> None -> def -> def ) -> def |
| Remove all enumerations. More... | |
| def | remove_enum_name (enum_name: str -> None -> def -> def ) -> def |
| Removes the enumeration specifed by the string. More... | |
| def | remove_enum_value (enum_value: int -> None -> def -> def ) -> def |
| Removes the enumeration specifed by the integer. More... | |
Initialize / Finalize | |
Functions handling class initialization and finalization. | |
Enumeration Values | |
Functions handling enumeration names and values. | |
Public Member Functions inherited from NamedItem | |
| def | get_alias ( -> str -> def -> def ) -> def |
| Returns the alias of the item. More... | |
| def | get_name ( -> str -> def -> def ) -> def |
| Returns the name of the item. More... | |
| def | get_long_description ( -> str -> def -> def ) -> def |
| Returns the long description of the item. More... | |
| def | get_short_description ( -> str -> def -> def ) -> def |
| Returns the short description of the item. More... | |
| def | get_user_description ( -> str -> def -> def ) -> def |
| Returns the user description of the item. More... | |
| def | get_owner ( -> str -> def -> def ) -> def |
| Returns the owner of the item. More... | |
| def | set_name (name: str -> None -> def -> def ) -> def |
| Sets the name of the item. More... | |
| def | set_alias (alias: str -> None -> def -> def ) -> def |
| Sets the alias of the item. More... | |
| def | set_short_description (description: str -> None -> def -> def ) -> def |
| Sets the short description of the item. More... | |
| def | set_long_description (description: str -> None -> def -> def ) -> def |
| Sets the long description of the item. More... | |
| def | set_user_description (description: str -> None -> def -> def ) -> def |
| Sets the user description of the item. More... | |
| def | set_owner (owner: str -> None -> def -> def ) -> def |
| Sets the owner of the item. More... | |
This class maps unsigned integer values to strings for enumeration.
The unsigned integer values is limited to 32 bits.
| ( | enumerator | : Optional[RangeEnumerator] |