Implement ::dba_var, an encapsulation of a measured variable.
More...
#include <wreport/var.h>
#include <memory>
#include <string>
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.
|
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.
|
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.