Logo Search packages:      
Sourcecode: dballe version File versions

dba_err dba_record_set_ana_context ( dba_record  rec  ) 

Set the date, level and timerange values to match the anagraphical context.

Parameters:
rec The record where the value is to be set.
Returns:
The error indicator for the function (
See also:
dba_err).

Definition at line 629 of file dba_record.c.

References DBA_RUN_OR_RETURN.

{
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_YEAR, 1000));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_MONTH, 1));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_DAY, 1));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_HOUR, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_MIN, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_SEC, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_LEVELTYPE, 257));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_L1, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_L2, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_PINDICATOR, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_P1, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_P2, 0));
      DBA_RUN_OR_RETURN(dba_record_key_seti(rec, DBA_KEY_REP_COD, 254));
      return dba_error_ok();
}


Generated by  Doxygen 1.6.0   Back to index