22 #ifndef WREPORT_VARTABLE_H
23 #define WREPORT_VARTABLE_H
95 const std::string&
id()
const {
return m_id; }
101 void load(
const std::pair<std::string, std::string>& idfile);
152 static const Vartable*
get(
const std::pair<std::string, std::string>& idfile);
163 static std::pair<std::string, std::string>
find_table(
const std::vector<std::string>& ids);
171 static std::pair<std::string, std::string>
find_table(
const std::string&
id);
std::string m_id
ID of the table.
Definition: vartable.h:88
Varinfo query_altered(Varcode var, int scale, unsigned bit_len) const
Query an altered version of the vartable.
Holds a variable information table.
Definition: vartable.h:84
void load(const std::pair< std::string, std::string > &idfile)
Load contents from the table with the given ID.
short unsigned int Varcode
Holds the WMO variable code of a variable.
Definition: varinfo.h:78
Implement fast access to information about WMO variables.
Smart pointer to handle/use varinfos.
Definition: varinfo.h:336
Varinfo query(Varcode code) const
Query the Vartable.
static std::pair< std::string, std::string > find_table(const std::vector< std::string > &ids)
Look for a table for one of the given table IDs.
bool loaded() const
Return true if the Vartable has been loaded.
Definition: vartable.h:98
const std::string & id() const
Return the Vartable ID.
Definition: vartable.h:95
bool contains(Varcode code) const
Check if the code can be resolved to a varinfo.