22 #ifndef DBA_MSG_CONTEXT_H
23 #define DBA_MSG_CONTEXT_H
59 std::vector<wreport::Var*>
data;
109 void set(std::unique_ptr<wreport::Var> var);
194 void print(FILE* out)
const;
221 #include <dballe/msg/context-extravars.h>
227 dba_err dba_msg_context_set(dba_msg msg, dba_var var, dba_varcode code,
int ltype,
int l1,
int l2,
int pind,
int p1,
int p2);
228 dba_err dba_msg_context_set_by_id(dba_msg msg, dba_var var,
int id);
229 dba_err dba_msg_context_set_nocopy_by_id(dba_msg msg, dba_var var,
int id);
230 dba_err dba_msg_context_seti(dba_msg msg, dba_varcode code,
int val,
int conf,
int ltype,
int l1,
int l2,
int pind,
int p1,
int p2);
231 dba_err dba_msg_context_setd(dba_msg msg, dba_varcode code,
double val,
int conf,
int ltype,
int l1,
int l2,
int pind,
int p1,
int p2);
232 dba_err dba_msg_context_setc(dba_msg msg, dba_varcode code,
const char* val,
int conf,
int ltype,
int l1,
int l2,
int pind,
int p1,
int p2);
Store an array of physical data all on the same level.
Definition: context.h:44
void setc(wreport::Varcode code, const char *val)
Add or replace a string value.
Create wreport variables from the DB-All.e B table.
void setd(wreport::Varcode code, double val)
Add or replace a double value.
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:587
std::vector< wreport::Var * > data
The variables in this context.
Definition: context.h:59
Vertical level or layer.
Definition: types.h:532
unsigned diff(const Context &ctx) const
Compute the differences between two contexts.
const wreport::Var * find_by_id(int id) const
Find a variable given its shortcut ID.
const wreport::Var * find(wreport::Varcode code) const
Find a variable given its varcode.
int compare(const Context &ctx) const
Compare two dba_msg_context strutures, for use in sorting.
int find_index(wreport::Varcode code) const
Return the index of the var `code' in l, or -1 if it was not found.
void set(const wreport::Var &var)
Add a Var to the level.
void lua_push(struct lua_State *L)
Push the variable as an object in the lua stack.
static Context * lua_check(struct lua_State *L, int idx)
Check that the element at idx is a dba_msg_context.
wreport::Var * edit(wreport::Varcode code)
Find a variable given its varcode.
const wreport::Var * find_vsig() const
If this context is the right context for a vertical sounding significance and contains a vertical sou...
void seti(wreport::Varcode code, int val)
Add or replace an integer value.
void print(FILE *out) const
Dump all the contents of the context to the given stream.