dtable.h
#ifndef WREPORT_DTABLE_H
#define WREPORT_DTABLE_H
#include <wreport/opcodes.h>
#include <string>
#include <vector>
namespace wreport {
class DTable
{
public:
virtual ~DTable();
virtual std::string pathname() const = 0;
virtual Opcodes query(Varcode var) const = 0;
static const DTable* load_bufr(const std::string& pathname);
static const DTable* load_crex(const std::string& pathname);
};
}
#endif
wreport::DTable
BUFR/CREX table D with Dxxyyy aggregate code expansions.
Definition dtable.h:14
wreport::DTable::load_bufr
static const DTable * load_bufr(const std::string &pathname)
Return a BUFR D table, by file name.
wreport::DTable::query
virtual Opcodes query(Varcode var) const =0
Query the DTable.
wreport::DTable::pathname
virtual std::string pathname() const =0
Return the pathname of the file from which this table has been loaded.
wreport::DTable::load_crex
static const DTable * load_crex(const std::string &pathname)
Return a CREX D table, by file name.
wreport
String functions.
Definition benchmark.h:13
wreport::Varcode
uint16_t Varcode
Holds the WMO variable code of a variable.
Definition fwd.h:12
wreport::Opcodes
Sequence of opcodes, as a slice of a Varcode vector.
Definition opcodes.h:20