Wrap a dba_var.
|
Public Member Functions |
|
| Var (dba_var var) |
| | Wraps an existing dba_var, taking charge of memory allocation.
|
|
| Var (const Var &var) |
| | Copy constructor.
|
|
| Var (dba_varcode code) |
| | Create a Var from a dba_varcode using the local B table.
|
|
| Var (Varinfo info) |
| | Create a Var from a Varinfo.
|
|
| Var (dba_varcode code, int val) |
| | Create a Var from a dba_varcode and an integer value.
|
|
| Var (Varinfo info, int val) |
| | Create a Var from a Varinfo and an integer value.
|
|
| Var (dba_varcode code, double val) |
| | Create a Var from a dba_varcode and a double value.
|
|
| Var (Varinfo info, double val) |
| | Create a Var from a Varinfo and a double value.
|
|
| Var (dba_varcode code, const char *val) |
| | Create a Var from a dba_varcode and a string.
|
|
| Var (Varinfo info, const char *val) |
| | Create a Var from a Varinfo and a string.
|
|
| Var (dba_varcode code, const std::string &val) |
| | Create a Var from a dba_varcode and a string.
|
|
| Var (Varinfo info, const std::string &val) |
| | Create a Var from a Varinfo and a string.
|
|
Var & | operator= (const Var &var) |
| | Assignment with copy semantics.
|
|
bool | operator== (int val) const |
| | Comparison with int.
|
|
bool | operator== (double val) const |
| | Comparison with double.
|
|
bool | operator== (const char *val) const |
| | Comparison with C string.
|
|
bool | operator== (const std::string &val) const |
| | Comparison with string.
|
|
bool | operator== (const Var &var) const |
| | Comparison with Var.
|
|
Var | copy () const |
| | Create a copy of this variable.
|
|
bool | equals (const Var &var) const |
| | Check if two variables have the same value.
|
|
int | enqi () const |
| | Get the variable value, as an unscaled integer.
|
|
double | enqd () const |
| | Get the variable value, as a double.
|
|
const char * | enqc () const |
| | Get the variable value, as a string.
|
|
std::string | enqs () const |
| | Get the variable value, as a string.
|
|
void | set (int val) |
| | Get the variable value, from an unscaled integer.
|
|
void | set (double val) |
| | Get the variable value, from a double.
|
|
void | set (const char *val) |
| | Get the variable value, from a string.
|
|
void | set (const std::string &val) |
| | Get the variable value, from a string.
|
|
bool | isset () const |
| | Check if the variable is set.
|
|
void | unset () |
| | Unset the variable value.
|
|
dba_varcode | code () const |
| | Get the variable code.
|
|
Varinfo | info () const |
| | Get the variable Varinfo metadata.
|
|
std::string | format (const std::string &nullValue="(undef)") const |
| | Create a formatted string representation of the variable value.
|
|
const char * | raw () const |
| | Get the raw, string-serialised variable value.
|
|
const dba_var | var () const |
| | Access the underlying dba_var.
|
|
dba_var | var () |
| | Access the underlying dba_var.
|
Static Public Member Functions |
|
static Var | clone (dba_var var) |
| | Wraps an existing dba_var, copying it.
|