libdballe  9.11
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 
12 namespace dballe {
13 
18 void resolve_varlist(const std::string& varlist, std::set<wreport::Varcode>& out);
20 
22 void resolve_varlist(const std::string& varlist, std::function<void(wreport::Varcode)> out);
23 
25 std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var);
26 
31 std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var, wreport::Varcode code);
32 
38 void format_code(wreport::Varcode code, char* buf);
39 
45 void format_bcode(wreport::Varcode code, char* buf);
46 
49 
50 }
51 
52 #endif
Create wreport variables from the DB-All.e B table.
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.
Definition: cmdline.h:18
uint16_t Varcode
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.
wreport::Varcode map_code_to_dballe(wreport::Varcode code)
Return code, or its DB-All.e equivalent.
void format_bcode(wreport::Varcode code, char *buf)
Format the B code to its string representation.