libwreport  3.5
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 
8 namespace wreport {
9 
13 struct DTable
14 {
15  virtual ~DTable();
16 
18  virtual std::string pathname() const = 0;
19 
29  virtual Opcodes query(Varcode var) const = 0;
30 
37  static const DTable* load_bufr(const std::string& pathname);
38 
45  static const DTable* load_crex(const std::string& pathname);
46 };
47 
48 
49 }
50 
51 #endif
static const DTable * load_bufr(const std::string &pathname)
Return a BUFR D table, by file name.
static const DTable * load_crex(const std::string &pathname)
Return a CREX D table, by file name.
uint16_t Varcode
Holds the WMO variable code of a variable.
Definition: varinfo.h:57
virtual Opcodes query(Varcode var) const =0
Query the DTable.
Sequence of opcodes, as a slice of a Varcode vector.
Definition: opcodes.h:19
BUFR/CREX table D with Dxxyyy aggregate code expansions.
Definition: dtable.h:13
String functions.
Definition: benchmark.h:13
virtual std::string pathname() const =0
Return the pathname of the file from which this table has been loaded.