22 #ifndef WREPORT_SUBSET_H
23 #define WREPORT_SUBSET_H
40 struct Subset :
public std::vector<Var>
131 void print(FILE* out)
const;
void store_variable_c(Varcode code, const char *val)
Store a new variable in the message, providing its value as a string.
Subset(const Vartable *btable)
Create a new BUFR/CREX subset.
void store_variable(const Var &var)
Store a decoded variable in the message, to be encoded later.
unsigned diff(const Subset &s2) const
Compute the differences between two wreport subsets.
Implement wreport::Var, an encapsulation of a measured variable.
Holds a wreport variable.
Definition: var.h:50
const Vartable * btable
dba_vartable used to lookup B table codes
Definition: subset.h:43
Implement fast access to information about WMO variables.
void store_variable_d(Varcode code, double val)
Store a new variable in the message, providing its value as a double.
Holds a variable information table.
Definition: vartable.h:84
void store_variable_i(Varcode code, int val)
Store a new variable in the message, providing its value as an int.
void append_fixed_dpb(Varcode ccode, int size)
Append a fixed-size data present bitmap with all zeros.
void store_variable_undef(Varcode code)
Store a new, undefined variable in the message.
int append_dpb(Varcode ccode, unsigned size, Varcode attr)
Compute and append a data present bitmap.
short unsigned int Varcode
Holds the WMO variable code of a variable.
Definition: varinfo.h:78
Represent a BUFR/CREX data subset as a list of decoded variables.
Definition: subset.h:40
void print(FILE *out) const
Dump the contents of this subset.
Implement fast access to information about WMO expansion tables D.
void append_c_with_dpb(Varcode ccode, int count, const char *bitmap)
Append a C operator with a count long bitmap.