nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.02k stars 1.29k forks source link

Update `PolyDb` to use an FPP enum for the index #2590

Closed timcanham closed 5 months ago

timcanham commented 5 months ago
F´ Version 3.4.3
Affected Component Svc/PolyDb

Feature Description

Change the index for entry lookups to an FPP enum instead of a bare integer. Put that enum in a configuration file in the config directory so projects can customize it.

Rationale

Using PolyDb internally in code can be error prone and more obscure if there are just integers as the index. This allows getting entries with a descriptive enum instead of an integer.