libdballe  6.8
Functions
var.h File Reference

Implement ::dba_var, an encapsulation of a measured variable. More...

#include <wreport/var.h>
#include <memory>
#include <string>
#include <set>

Go to the source code of this file.

Functions

wreport::Varinfo dballe::varinfo (wreport::Varcode code)
 Convenience functions to quickly create variables from the local B table. More...
 
wreport::Varcode dballe::resolve_varcode (const char *name)
 Resolve a varcode name to a varcode proper.
 
wreport::Varcode dballe::resolve_varcode_safe (const char *name)
 Resolve a varcode name to a varcode proper, performing careful validation.
 
wreport::Varcode dballe::resolve_varcode_safe (const std::string &name)
 Resolve a varcode name to a varcode proper, performing careful validation.
 
void dballe::resolve_varlist_safe (const std::string &varlist, std::set< wreport::Varcode > &out)
 Resolve a comma-separated varcode list performing careful validation, inserting results in out.
 
template<typename T >
wreport::Var dballe::var (wreport::Varcode code, const T &val)
 Create a new Var, from the local B table, with value.
 
template<typename T >
std::auto_ptr< wreport::Var > dballe::newvar (wreport::Varcode code, const T &val)
 Create a new Var, from the local B table, with value.
 
std::auto_ptr< wreport::Var > dballe::var_copy_without_unset_attrs (const wreport::Var &var)
 Create a new Var, copying var and all its attributes except the unset ones.
 
std::auto_ptr< wreport::Var > dballe::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...
 
std::string dballe::format_code (wreport::Varcode code)
 Format the code to its string representation.
 
wreport::Varcode dballe::map_code_to_dballe (wreport::Varcode code)
 Return code, or its DB-All.e equivalent.
 

Detailed Description

Implement ::dba_var, an encapsulation of a measured variable.