1#ifndef WREPORT_SUBSET_H
2#define WREPORT_SUBSET_H
4#include <wreport/var.h>
12class Subset :
public std::vector<Var>
Represent a BUFR/CREX data subset as a list of decoded variables.
Definition subset.h:13
void print(FILE *out) const
Dump the contents of this subset.
unsigned diff(const Subset &s2) const
Compute the differences between two wreport subsets.
int append_dpb(Varcode ccode, unsigned size, Varcode attr)
Compute and append a data present bitmap.
Subset(const Tables &tables)
Create a new BUFR/CREX subset.
const Tables * tables
Tables used for creating variables in this subset.
Definition subset.h:16
void store_variable(Var &&var)
Store a decoded variable in the message, to be encoded later.
void append_fixed_dpb(Varcode ccode, int size)
Append a fixed-size data present bitmap with all zeros.
void store_variable_c(Varcode code, const char *val)
Store a new variable in the message, providing its value as a string.
void store_variable_i(Varcode code, int val)
Store a new variable in the message, providing its value as an int.
void store_variable(Varcode code, const Var &var)
Store a new variable in the message, copying it from an already existing variable.
void store_variable_undef(Varinfo info)
Store a new, undefined variable in the message.
void store_variable_undef(Varcode code)
Store a new, undefined variable in the message.
void append_c_with_dpb(Varcode ccode, int count, const char *bitmap)
Append a C operator with a count long bitmap.
void store_variable_d(Varcode code, double val)
Store a new variable in the message, providing its value as a double.
void store_variable(const Var &var)
Store a decoded variable in the message, to be encoded later.
A physical variable.
Definition var.h:25
String functions.
Definition benchmark.h:13
uint16_t Varcode
Holds the WMO variable code of a variable.
Definition fwd.h:12
Collection of BUFR/CREX tables used to work on a bulletin.
Definition tables.h:15
Information about a variable.
Definition varinfo.h:139