Public Member Functions |
| Record (const Record &rec) |
Record & | operator= (const Record &rec) |
bool | operator== (const Record &rec) const |
bool | operator!= (const Record &rec) const |
void | clear () |
| Remove all data from the record.
|
void | clear_vars () |
| Remove all variables from the record, leaving the keywords intact.
|
void | add (const Record &source) |
| Copy all data from the record source into dest.
|
bool | contains (const Record &subset) const |
| Return true if all elements of subset are present in this record, with the same value.
|
void | set_to_difference (const Record &source1, const Record &source2) |
| Set the record to contain only those fields that change source1 into source2.
|
const wreport::Var * | key_peek (dba_keyword parameter) const throw () |
| Look at the value of a parameter.
|
const wreport::Var * | var_peek (wreport::Varcode code) const throw () |
| Look at the value of a variable.
|
const wreport::Var * | peek (const char *name) const |
| Get the variable for an item.
|
const wreport::Var * | peek (dba_keyword parameter) const throw () |
| Shortcut for key_peek.
|
const wreport::Var * | peek (wreport::Varcode code) const throw () |
| Shortcut for var_peek.
|
const char * | key_peek_value (dba_keyword parameter) const throw () |
| Look at the raw value of a keyword in the record, without raising errors.
|
const char * | var_peek_value (wreport::Varcode code) const throw () |
| Look at the raw value of a variable in the record, without raising errors.
|
const char * | peek_value (const char *name) const |
| Get the string value for an item.
|
const char * | peek_value (dba_keyword parameter) const throw () |
| Shortcut for key_peek_value.
|
const char * | peek_value (wreport::Varcode code) const throw () |
| Shortcut for var_peek_value.
|
const wreport::Var & | key (dba_keyword parameter) const |
| Return the Var for a key, throwing an error it if it missing.
|
const wreport::Var & | var (wreport::Varcode code) const |
| Return the Var for a variable, throwing an error it if it missing.
|
wreport::Var & | key (dba_keyword parameter) |
| Return the Var for a key, creating it if it missing.
|
wreport::Var & | var (wreport::Varcode code) |
| Return the Var for a variable, creating it if it missing.
|
void | set_ana_context () |
| Set the date, level and timerange values to match the anagraphical context.
|
const std::vector
< wreport::Var * > & | vars () const |
| Return the vector with the variables.
|
void | key_unset (dba_keyword parameter) |
| Remove a parameter from the record.
|
void | var_unset (wreport::Varcode code) |
| Remove a parameter from the record.
|
void | parse_date_extremes (int *minvalues, int *maxvalues) const |
| Parse the date extremes set in Record.
|
void | parse_date (int *values) const |
| Parse the date set in the Record.
|
void | set_from_string (const char *str) |
| Set a value in the record according to an assignment encoded in a string.
|
void | print (FILE *out) const |
| Print the contents of this record to the given file descriptor.
|
|
const wreport::Var & | get (dba_keyword parameter) const |
| Shortcuts.
|
const wreport::Var & | get (wreport::Varcode code) const |
| Shortcuts.
|
const wreport::Var & | get (const char *name) const |
| Shortcuts.
|
wreport::Var & | get (dba_keyword parameter) |
| Shortcuts.
|
wreport::Var & | get (wreport::Varcode code) |
| Shortcuts.
|
wreport::Var & | get (const char *name) |
| Shortcuts.
|
template<typename K , typename T > |
T | get (K name, T default_value) const |
| Shortcuts.
|
const wreport::Var & | operator[] (dba_keyword parameter) const |
| Shortcuts.
|
const wreport::Var & | operator[] (wreport::Varcode code) const |
| Shortcuts.
|
const wreport::Var & | operator[] (const char *name) const |
| Shortcuts.
|
wreport::Var & | operator[] (dba_keyword parameter) |
| Shortcuts.
|
wreport::Var & | operator[] (wreport::Varcode code) |
| Shortcuts.
|
wreport::Var & | operator[] (const char *name) |
| Shortcuts.
|
template<typename P , typename V > |
void | set (const P &field, const V &val) |
| Shortcuts.
|
void | set (const wreport::Var &var) |
| Shortcuts.
|
void | unset (dba_keyword parameter) |
| Shortcuts.
|
void | unset (wreport::Varcode code) |
| Shortcuts.
|
void | unset (const char *name) |
| Shortcuts.
|
DB-All.E record.
A Record is a container for one observation of meteorological values, that includes anagraphical informations, physical location of the observation in time and space, and all the observed variables.
void dballe::Record::parse_date_extremes |
( |
int * |
minvalues, |
|
|
int * |
maxvalues |
|
) |
| const |
Parse the date extremes set in Record.
This function will examine the values yearmin, monthmin, daymin, hourmin, minumin, secmin, yearmax, monthmax, daymax, hourmax, minumax, secmax, year, month, day, hour, min and sec, and will compute the two datetime extremes that bound the interval they represent.
- Return values
-
minvalues | An array of 6 integers that will be filled with the minimum year, month, day, hour, minute and seconds. |
maxvalues | An array of 6 integers that will be filled with the maximum year, month, day, hour, minute and seconds. |