Logo Search packages:      
Sourcecode: dballe version File versions

dba_record.h File Reference


Detailed Description

Implement a storage object for a group of related observation data

Definition in file dba_record.h.

#include <dballe/err/dba_error.h>
#include <dballe/core/dba_var.h>

Go to the source code of this file.

Defines

#define DBA_VAR_BLOCK   DBA_VAR(0, 1, 1)
#define DBA_VAR_DATA_ID   DBA_VAR(0, 33, 195)
#define DBA_VAR_HEIGHT   DBA_VAR(0, 7, 1)
#define DBA_VAR_HEIGHTBARO   DBA_VAR(0, 7, 31)
#define DBA_VAR_NAME   DBA_VAR(0, 1, 19)
#define DBA_VAR_STATION   DBA_VAR(0, 1, 2)

Typedefs

typedef enum _dba_keyword dba_keyword
typedef struct _dba_record * dba_record
typedef struct _dba_item * dba_record_cursor

Enumerations

enum  _dba_keyword {
  DBA_KEY_ERROR = -1, DBA_KEY_PRIORITY = 0, DBA_KEY_PRIOMAX = 1, DBA_KEY_PRIOMIN = 2,
  DBA_KEY_REP_COD = 3, DBA_KEY_REP_MEMO = 4, DBA_KEY_ANA_ID = 5, DBA_KEY_BLOCK = 6,
  DBA_KEY_STATION = 7, DBA_KEY_MOBILE = 8, DBA_KEY_IDENT = 9, DBA_KEY_LAT = 10,
  DBA_KEY_LON = 11, DBA_KEY_LATMAX = 12, DBA_KEY_LATMIN = 13, DBA_KEY_LONMAX = 14,
  DBA_KEY_LONMIN = 15, DBA_KEY_DATETIME = 16, DBA_KEY_YEAR = 17, DBA_KEY_MONTH = 18,
  DBA_KEY_DAY = 19, DBA_KEY_HOUR = 20, DBA_KEY_MIN = 21, DBA_KEY_SEC = 22,
  DBA_KEY_YEARMAX = 23, DBA_KEY_YEARMIN = 24, DBA_KEY_MONTHMAX = 25, DBA_KEY_MONTHMIN = 26,
  DBA_KEY_DAYMAX = 27, DBA_KEY_DAYMIN = 28, DBA_KEY_HOURMAX = 29, DBA_KEY_HOURMIN = 30,
  DBA_KEY_MINUMAX = 31, DBA_KEY_MINUMIN = 32, DBA_KEY_SECMAX = 33, DBA_KEY_SECMIN = 34,
  DBA_KEY_LEVELTYPE = 35, DBA_KEY_L1 = 36, DBA_KEY_L2 = 37, DBA_KEY_PINDICATOR = 38,
  DBA_KEY_P1 = 39, DBA_KEY_P2 = 40, DBA_KEY_VAR = 41, DBA_KEY_VARLIST = 42,
  DBA_KEY_CONTEXT_ID = 43, DBA_KEY_QUERY = 44, DBA_KEY_ANA_FILTER = 45, DBA_KEY_DATA_FILTER = 46,
  DBA_KEY_ATTR_FILTER = 47, DBA_KEY_LIMIT = 48, DBA_KEY_VAR_RELATED = 49, DBA_KEY_COUNT = 50
}

Functions

dba_err dba_record_add (dba_record dest, dba_record source)
void dba_record_clear (dba_record rec)
void dba_record_clear_vars (dba_record rec)
dba_err dba_record_contains_key (dba_record rec, dba_keyword parameter, int *found)
dba_err dba_record_contains_var (dba_record rec, dba_varcode code, int *found)
dba_err dba_record_copy (dba_record dest, dba_record source)
dba_err dba_record_create (dba_record *rec)
dba_var dba_record_cursor_variable (dba_record_cursor cur)
void dba_record_delete (dba_record rec)
void dba_record_diff (dba_record rec1, dba_record rec2, int *diffs, FILE *out)
dba_err dba_record_difference (dba_record dest, dba_record source1, dba_record source2)
int dba_record_equals (dba_record rec1, dba_record rec2)
dba_record_cursor dba_record_iterate_first (dba_record rec)
dba_record_cursor dba_record_iterate_next (dba_record rec, dba_record_cursor cur)
dba_err dba_record_key_enq (dba_record rec, dba_keyword parameter, dba_var *var)
dba_err dba_record_key_enqc (dba_record rec, dba_keyword parameter, const char **value)
dba_err dba_record_key_enqd (dba_record rec, dba_keyword parameter, double *value)
dba_err dba_record_key_enqi (dba_record rec, dba_keyword parameter, int *value)
dba_var dba_record_key_peek (dba_record rec, dba_keyword parameter)
const char * dba_record_key_peek_value (dba_record rec, dba_keyword parameter)
dba_err dba_record_key_set (dba_record rec, dba_keyword parameter, dba_var var)
dba_err dba_record_key_setc (dba_record rec, dba_keyword parameter, const char *value)
dba_err dba_record_key_setd (dba_record rec, dba_keyword parameter, double value)
dba_err dba_record_key_seti (dba_record rec, dba_keyword parameter, int value)
dba_err dba_record_key_unset (dba_record rec, dba_keyword parameter)
dba_keyword dba_record_keyword_byname (const char *tag)
dba_keyword dba_record_keyword_byname_len (const char *tag, int len)
dba_err dba_record_keyword_info (dba_keyword keyword, dba_varinfo *info)
dba_err dba_record_parse_date_extremes (dba_record rec, int *minvalues, int *maxvalues)
void dba_record_print (dba_record rec, FILE *out)
dba_err dba_record_set_ana_context (dba_record rec)
dba_err dba_record_set_from_string (dba_record rec, const char *str)
dba_err dba_record_var_enq (dba_record rec, dba_varcode code, dba_var *var)
dba_err dba_record_var_enqc (dba_record rec, dba_varcode code, const char **value)
dba_err dba_record_var_enqd (dba_record rec, dba_varcode code, double *value)
dba_err dba_record_var_enqi (dba_record rec, dba_varcode code, int *value)
dba_var dba_record_var_peek (dba_record rec, dba_varcode code)
const char * dba_record_var_peek_value (dba_record rec, dba_varcode code)
dba_err dba_record_var_set (dba_record rec, dba_varcode code, dba_var var)
dba_err dba_record_var_set_direct (dba_record rec, dba_var var)
dba_err dba_record_var_setc (dba_record rec, dba_varcode code, const char *value)
dba_err dba_record_var_setd (dba_record rec, dba_varcode code, double value)
dba_err dba_record_var_seti (dba_record rec, dba_varcode code, int value)
dba_err dba_record_var_unset (dba_record rec, dba_varcode code)


Generated by  Doxygen 1.6.0   Back to index