libwreport 3.34
dtable.h
1#ifndef WREPORT_DTABLE_H
2#define WREPORT_DTABLE_H
3
4#include <wreport/opcodes.h>
5#include <string>
6#include <vector>
7
8namespace wreport {
9
13class DTable
14{
15public:
16 virtual ~DTable();
17
19 virtual std::string pathname() const = 0;
20
30 virtual Opcodes query(Varcode var) const = 0;
31
38 static const DTable* load_bufr(const std::string& pathname);
39
46 static const DTable* load_crex(const std::string& pathname);
47};
48
49
50}
51
52#endif
BUFR/CREX table D with Dxxyyy aggregate code expansions.
Definition: dtable.h:14
static const DTable * load_bufr(const std::string &pathname)
Return a BUFR D table, by file name.
virtual Opcodes query(Varcode var) const =0
Query the DTable.
virtual std::string pathname() const =0
Return the pathname of the file from which this table has been loaded.
static const DTable * load_crex(const std::string &pathname)
Return a CREX D table, by file name.
String functions.
Definition: benchmark.h:13
uint16_t Varcode
Holds the WMO variable code of a variable.
Definition: fwd.h:12
Sequence of opcodes, as a slice of a Varcode vector.
Definition: opcodes.h:20