/usr/include/wreport/tables.h is in libwreport-dev 3.6-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #ifndef WREPORT_TABLES_H
#define WREPORT_TABLES_H
#include <wreport/varinfo.h>
#include <map>
#include <string>
namespace wreport {
struct BufrTableID;
struct CrexTableID;
struct Vartable;
struct DTable;
/**
* Collection of BUFR/CREX tables used to work on a bulletin
*/
struct Tables
{
/// Vartable used to lookup B table codes
const Vartable* btable;
/// DTable used to lookup D table codes
const DTable* dtable;
/// Storage for temporary Varinfos for bitmaps
mutable std::map<std::string, _Varinfo> bitmap_table;
/// Storage for temporary Varinfos for arbitrary character data
mutable std::map<Varcode, _Varinfo> chardata_table;
/// Storage for temporary Varinfos for C06 unknown local descriptors
mutable std::map<unsigned, _Varinfo> unknown_table;
Tables();
Tables(const Tables&) = delete;
Tables(Tables&&);
~Tables();
Tables& operator=(const Tables&) = delete;
Tables& operator=(Tables&&);
/// Check if the B and D tables have been loaded
bool loaded() const;
/// Clear btable, datable and all locally generated Varinfos
void clear();
/// Load BUFR B and D tables
void load_bufr(const BufrTableID& id);
/// Load CREX B and D tables
void load_crex(const CrexTableID& id);
// Create a varinfo to store the bitmap
Varinfo get_bitmap(Varcode code, const std::string& bitmap) const;
// Create a varinfo to store character data
Varinfo get_chardata(Varcode code, unsigned len) const;
// Create a varinfo to store a C06 unknown local descriptor
Varinfo get_unknown(Varcode code, unsigned bit_len) const;
};
}
#endif
|