Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
report_status.active@hdr, report_status.passive@hdr, report_status.rejected@hdr, report_status.blacklisted@hdr, report_status.use_emiskf_only@hdr

 

Finding details of bitfield definition

The odb header tool can be used to find out details of bitfield definition: its members and number of bits they occupy:

Code Block
$ odb header conv.odb | grep datum_status | head -n 1
40. name: datum_status@body, type: BITFIELD [active:1;passive:1;rejected:1;blacklisted:1;use_emiskf_only:1] , codec: int8, range=<1.000000,5.000000>

Option -dll produces output in the Data Definition Language (part of SQL) format:

Code Block
$ odb header -ddl conv.odb | grep datum_status | head -n 1
CREATE TYPE datum_status@body_at_foo_t AS (active bit1, passive bit1, rejected bit1, blacklisted bit1, use_emiskf_only bit1);