nasa / EdsLib

CCSDS SOIS Electronic Data Sheet Tool and Library
Apache License 2.0
31 stars 12 forks source link

Update table tool to allow dynamic content from C source files #74

Closed jphickey closed 6 months ago

jphickey commented 8 months ago

Is your feature request related to a problem? Please describe. In an EDS environment, it is possible that some macros do not resolve at compile time. In particular the TopicID to MsgID conversion is not fixed, as it also includes the (runtime) instance number.

This is a problem for "conventional" table builds that expect to be able to compile a C file containing MsgIDs, which necessitates that those values resolve at compile time.

Describe the solution you'd like Need a workaround for compiling traditional (C-source) table files.

Describe alternatives you've considered The table files could be converted to Lua (the tool supports this) but this is a considerable effort to rewrite the table files.

Additional context For CFS apps to work out of the box, table defs need to stay in C and be source-compatible.

Requester Info Joseph Hickey, Vantage Systems, Inc.