libdballe  9.11
Functions
core/var.h File Reference

Shortcut functions to work with wreport::Var in DB-All.e. More...

#include <dballe/var.h>
#include <set>
#include <functional>

Go to the source code of this file.

Functions

void dballe::resolve_varlist (const std::string &varlist, std::set< wreport::Varcode > &out)
 Convenience functions to quickly create variables from the local B table. More...
 
void dballe::resolve_varlist (const std::string &varlist, std::function< void(wreport::Varcode)> out)
 Resolve a comma-separated varcode list performing careful validation, calling dest on each result.
 
std::unique_ptr< wreport::Vardballe::var_copy_without_unset_attrs (const wreport::Var &var)
 Create a new Var, copying var and all its attributes except the unset ones.
 
std::unique_ptr< wreport::Vardballe::var_copy_without_unset_attrs (const wreport::Var &var, wreport::Varcode code)
 Create a new Var with code code, copying the value from var and all its attributes except the unset ones.
 
void dballe::format_code (wreport::Varcode code, char *buf)
 Format the code to its string representation. More...
 
void dballe::format_bcode (wreport::Varcode code, char *buf)
 Format the B code to its string representation. More...
 
wreport::Varcode dballe::map_code_to_dballe (wreport::Varcode code)
 Return code, or its DB-All.e equivalent.
 

Detailed Description

Shortcut functions to work with wreport::Var in DB-All.e.

Function Documentation

◆ format_bcode()

void dballe::format_bcode ( wreport::Varcode  code,
char *  buf 
)

Format the B code to its string representation.

The string will be written to buf, which must be at least 7 bytes long

◆ format_code()

void dballe::format_code ( wreport::Varcode  code,
char *  buf 
)

Format the code to its string representation.

The string will be written to buf, which must be at least 7 bytes long

◆ resolve_varlist()

void dballe::resolve_varlist ( const std::string &  varlist,
std::set< wreport::Varcode > &  out 
)

Convenience functions to quickly create variables from the local B table.

Resolve a comma-separated varcode list performing careful validation, inserting results in out