libdballe 9.6
core/var.h
Go to the documentation of this file.
1#ifndef DBALLE_CORE_VAR_H
2#define DBALLE_CORE_VAR_H
3
8#include <dballe/var.h>
9#include <set>
10#include <functional>
11
12namespace dballe {
13
19void resolve_varlist(const std::string& varlist, std::set<wreport::Varcode>& out);
20
22void resolve_varlist(const std::string& varlist, std::function<void(wreport::Varcode)> out);
23
25std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var);
26
31std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var, wreport::Varcode code);
32
38void format_code(wreport::Varcode code, char* buf);
39
45void format_bcode(wreport::Varcode code, char* buf);
46
49
50}
51
52#endif
void format_bcode(wreport::Varcode code, char *buf)
Format the B code to its string representation.
wreport::Varcode map_code_to_dballe(wreport::Varcode code)
Return code, or its DB-All.e equivalent.
void resolve_varlist(const std::string &varlist, std::set< wreport::Varcode > &out)
Convenience functions to quickly create variables from the local B table.
void format_code(wreport::Varcode code, char *buf)
Format the code to its string representation.
std::unique_ptr< wreport::Var > var_copy_without_unset_attrs(const wreport::Var &var)
Create a new Var, copying var and all its attributes except the unset ones.
uint16_t Varcode
Create wreport variables from the DB-All.e B table.