1 #ifndef WREPORT_TABLEINFO_H
2 #define WREPORT_TABLEINFO_H
6 #include <wreport/fwd.h>
16 uint16_t originating_centre = 0xffff;
17 uint16_t originating_subcentre = 0xffff;
18 uint8_t master_table_number = 0xff;
19 uint8_t master_table_version_number = 0xff;
20 uint8_t master_table_version_number_local = 0xff;
24 uint16_t originating_centre, uint16_t originating_subcentre,
25 uint8_t master_table_number, uint8_t master_table_version_number, uint8_t master_table_version_number_local)
26 : originating_centre(originating_centre), originating_subcentre(originating_subcentre),
27 master_table_number(master_table_number), master_table_version_number(master_table_version_number), master_table_version_number_local(master_table_version_number_local) {}
31 bool is_acceptable_replacement(
const BufrTableID&
id)
const;
32 bool is_acceptable_replacement(
const CrexTableID&
id)
const;
37 void print(FILE* out)
const;
46 uint8_t edition_number = 0xff;
47 uint16_t originating_centre = 0xffff;
48 uint16_t originating_subcentre = 0xffff;
49 uint8_t master_table_number = 0xff;
50 uint8_t master_table_version_number = 0xff;
51 uint8_t master_table_version_number_bufr = 0xff;
52 uint8_t master_table_version_number_local = 0xff;
56 uint8_t edition_number,
57 uint16_t originating_centre, uint16_t originating_subcentre,
58 uint8_t master_table_number,
59 uint8_t master_table_version_number,
60 uint8_t master_table_version_number_bufr,
61 uint8_t master_table_version_number_local
63 : edition_number(edition_number),
64 originating_centre(originating_centre), originating_subcentre(originating_subcentre),
65 master_table_number(master_table_number),
66 master_table_version_number(master_table_version_number),
67 master_table_version_number_bufr(master_table_version_number_bufr),
68 master_table_version_number_local(master_table_version_number_local) {}
72 bool is_acceptable_replacement(
const BufrTableID&
id)
const;
73 bool is_acceptable_replacement(
const CrexTableID&
id)
const;
78 void print(FILE* out)
const;