libdballe  7.19
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 
11 namespace dballe {
12 
17 void resolve_varlist(const std::string& varlist, std::set<wreport::Varcode>& out);
19 
21 void resolve_varlist(const std::string& varlist, std::function<void(wreport::Varcode)> out);
22 
24 std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var);
25 
30 std::unique_ptr<wreport::Var> var_copy_without_unset_attrs(const wreport::Var& var, wreport::Varcode code);
31 
37 void format_code(wreport::Varcode code, char* buf);
38 
41 
42 }
43 
44 #endif
Create wreport variables from the DB-All.e B table.
void format_code(wreport::Varcode code, char *buf)
Format the code to its string representation.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
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
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.