libdballe 9.13
core/var.h
Go to the documentation of this file.
1#ifndef DBALLE_CORE_VAR_H
2#define DBALLE_CORE_VAR_H
3
7
8#include <dballe/var.h>
9#include <functional>
10#include <set>
11
12namespace dballe {
13
17
20void resolve_varlist(const std::string& varlist,
21 std::set<wreport::Varcode>& out);
22
25void resolve_varlist(const std::string& varlist,
26 std::function<void(wreport::Varcode)> out);
27
30std::unique_ptr<wreport::Var>
32
37std::unique_ptr<wreport::Var>
38var_copy_without_unset_attrs(const wreport::Var& var, wreport::Varcode code);
39
45void format_code(wreport::Varcode code, char* buf);
46
52void format_bcode(wreport::Varcode code, char* buf);
53
55wreport::Varcode map_code_to_dballe(wreport::Varcode code);
56
57} // namespace dballe
58
59#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.
Create wreport variables from the DB-All.e B table.