/usr/include/wreport/dtable.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 | #ifndef WREPORT_DTABLE_H
#define WREPORT_DTABLE_H
#include <wreport/opcodes.h>
#include <string>
#include <vector>
namespace wreport {
/**
* BUFR/CREX table D with Dxxyyy aggregate code expansions
*/
struct DTable
{
virtual ~DTable();
/// Return the pathname of the file from which this table has been loaded
virtual std::string pathname() const = 0;
/**
* Query the DTable
*
* @param var
* entry code (i.e. DXXYYY as a wreport::Varcode WR_VAR(3, xx, yyy).
* @return
* the bufrex_opcode chain that contains the expansion elements
* (must be deallocated by the caller using bufrex_opcode_delete)
*/
virtual Opcodes query(Varcode var) const = 0;
/**
* Return a BUFR D table, by file name.
*
* Once loaded, the table will be cached in memory for reuse, and
* further calls to load_bufr() will return the cached version.
*/
static const DTable* load_bufr(const std::string& pathname);
/**
* Return a CREX D table, by file name.
*
* Once loaded, the table will be cached in memory for reuse, and
* further calls to load_crex() will return the cached version.
*/
static const DTable* load_crex(const std::string& pathname);
};
}
#endif
|