|
| 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. More...
|
|
bool | contains (const Record &subset) const |
| Return true if all elements of subset are present in this record, with the same value.
|
|
bool | contains (dba_keyword parameter) const throw () |
| Return true if the given parameter is set in this record.
|
|
bool | contains (wreport::Varcode parameter) const throw () |
| Return true if the given variable is set in this record.
|
|
bool | contains_level () const throw () |
| Return true if some level attribute is set in this record.
|
|
bool | contains_trange () const throw () |
| Return true if some time range attribute is set in this record.
|
|
bool | contains_datetime () const throw () |
| Return true if some datetime information is set in this record.
|
|
void | set_to_difference (const Record &source1, const Record &source2) |
| Set the record to contain only those fields that change source1 into source2. More...
|
|
const wreport::Var * | key_peek (dba_keyword parameter) const throw () |
| Look at the value of a parameter. More...
|
|
const wreport::Var * | var_peek (wreport::Varcode code) const throw () |
| Look at the value of a variable. More...
|
|
const wreport::Var * | peek (const char *name) const |
| Get the variable for an item. More...
|
|
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. More...
|
|
const char * | var_peek_value (wreport::Varcode code) const throw () |
| Look at the raw value of a variable in the record, without raising errors. More...
|
|
const char * | peek_value (const char *name) const |
| Get the string value for an item. More...
|
|
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.
|
|
Level | get_level () const |
|
Trange | get_trange () const |
|
Datetime | get_datetime () const |
|
void | set (const Datetime &dt) |
|
void | setmin (const Datetime &dt) |
|
void | setmax (const Datetime &dt) |
|
void | unset_datetime () |
|
void | unset_datetimemin () |
|
void | unset_datetimemax () |
|
void | get_datetime (int(&val)[6]) const |
|
void | get_datetimemin (int(&val)[6]) const |
|
void | get_datetimemax (int(&val)[6]) const |
|
void | set_datetime (const int(&val)[6]) |
|
void | set_datetimemin (const int(&val)[6]) |
|
void | set_datetimemax (const int(&val)[6]) |
|
void | set_datetime (int ye, int mo=1, int da=1, int ho=0, int mi=0, int se=0) |
|
void | set (const Coord &c) |
|
void | set_ana_context () |
| Set the date, level and timerange values to match the anagraphical context.
|
|
bool | is_ana_context () const |
| Check if this record is set to the ana context.
|
|
const std::vector
< wreport::Var * > & | vars () const |
| Return the varcode-sorted vector with the variables.
|
|
void | key_unset (dba_keyword parameter) |
| Remove a parameter from the record. More...
|
|
void | var_unset (wreport::Varcode code) |
| Remove a parameter from the record. More...
|
|
void | parse_date_extremes (int *minvalues, int *maxvalues) const |
| Parse the date extremes set in Record. More...
|
|
void | parse_date (int *values) const |
| Parse the date set in the Record. More...
|
|
void | set_from_string (const char *str) |
| Set a value in the record according to an assignment encoded in a string. More...
|
|
void | set_from_string (const char *key, const char *val) |
| Same as set_from_string(str) but takes already split key and val.
|
|
std::string | to_string () const |
| Encode in a one-liner of comma-separated assignments.
|
|
void | print (FILE *out) const |
| Print the contents of this record to the given file descriptor. More...
|
|
|
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 | set (const Level &lev) |
| Shortcuts.
|
|
void | set (const Trange &tr) |
| Shortcuts.
|
|
void | unset (dba_keyword parameter) |
| Shortcuts.
|
|
void | unset (wreport::Varcode code) |
| Shortcuts.
|
|
void | unset (const char *name) |
| Shortcuts.
|
|
template<typename K > |
void | copy (const Record &rec, K parameter) |
| Shortcuts.
|
|
template<typename K > |
bool | contains (const Record &rec, K parameter) |
| 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.