#include <var.h>
Public Member Functions | |
| Varinfo (dba_varinfo info) | |
| Varinfo (dba_varcode code) | |
| dba_varcode | var () const |
| The variable code. | |
| const char * | desc () const |
| The variable description. | |
| const char * | unit () const |
| The measurement unit of the variable. | |
| int | scale () const |
| The scale of the variable. | |
| int | ref () const |
| The reference value for the variable. | |
| int | len () const |
| The length in digits of the integer representation of this variable (after scaling and changing reference value). | |
| int | bit_ref () const |
| The reference value for bit-encoding. | |
| int | bit_len () const |
| The length in bits of the variable when encoded in a bit string (after scaling and changing reference value). | |
| bool | is_string () const |
| True if the variable is a string; false if it is a numeric value. | |
| int | imin () const |
| Minimum unscaled value the field can have. | |
| int | imax () const |
| Maximum unscaled value the field can have. | |
| double | dmin () const |
| Minimum scaled value the field can have. | |
| double | dmax () const |
| Maximum scaled value the field can have. | |
| dba_varinfo | raw () const |
Static Public Member Functions | |
| static Varinfo | create (dba_varcode code) |
| Create a Varinfo from a dba_varcode using the local B table. | |
| dba_varcode dballe::Varinfo::var | ( | ) | const [inline] |
The variable code.
| const char* dballe::Varinfo::desc | ( | ) | const [inline] |
The variable description.
| const char* dballe::Varinfo::unit | ( | ) | const [inline] |
The measurement unit of the variable.
| int dballe::Varinfo::scale | ( | ) | const [inline] |
The scale of the variable.
When the variable is represented as an integer, it is multiplied by 10**scale
| int dballe::Varinfo::ref | ( | ) | const [inline] |
The reference value for the variable.
When the variable is represented as an integer, and after scaling, it is added this value
| int dballe::Varinfo::bit_ref | ( | ) | const [inline] |
The reference value for bit-encoding.
When the variable is encoded in a bit string, it is added this value
1.5.5