next up previous contents
Next: API invariants Up: Input, output, actions Previous: Input, output, actions   Contents

Input/output shortcuts

There are a few functions that are shortcuts to other input and output functions:

idba_enqdate(handle, year, month, day, hour, minute, second)
is a shortcut to:
  idba_enqi(handle, "year", year)
  idba_enqi(handle, "month", month)
  idba_enqi(handle, "day", day)
  idba_enqi(handle, "hour", hour)
  idba_enqi(handle, "min", minute)
  idba_enqi(handle, "sec", second)
idba_setdate(handle, year, month, day, hour, minute, second)
is a shortcut to:
  idba_seti(handle, "year", year)
  idba_seti(handle, "month", month)
  idba_seti(handle, "day", day)
  idba_seti(handle, "hour", hour)
  idba_seti(handle, "min", minute)
  idba_seti(handle, "sec", second)
idba_enqlevel(handle, type, l1, l2)
is a shortcut to:
  idba_enqi(handle, "leveltype", type)
  idba_enqi(handle, "l1", l1)
  idba_enqi(handle, "l2", l2)
idba_setlevel(handle, type, l1, l2)
is a shortcut to:
  idba_seti(handle, "leveltype", type)
  idba_seti(handle, "l1", l1)
  idba_seti(handle, "l2", l2)
idba_enqtimerange(handle, type, p1, p2)
is a shortcut to:
  idba_enqi(handle, "pindicator", type)
  idba_enqi(handle, "p1", p1)
  idba_enqi(handle, "p2", p2)
idba_settimerange(handle, type, p1, p2)
is a shortcut to:
  idba_seti(handle, "pindicator", type)
  idba_seti(handle, "p1", p1)
  idba_seti(handle, "p2", p2)
idba_setcontextana(handle)
sets the date, time, level and time range in the input record to the fixed values that identify pseudoana values. It is a shortcut to:
  idba_seti(handle, "year", 1000)
  idba_seti(handle, "month", 1)
  idba_seti(handle, "day", 1)
  idba_seti(handle, "hour", 0)
  idba_seti(handle, "min", 0)
  idba_seti(handle, "sec", 0)
  idba_seti(handle, "leveltype", 257)
  idba_seti(handle, "l1", 0)
  idba_seti(handle, "l2", 0)
  idba_seti(handle, "pindicator", 0)
  idba_seti(handle, "p1", 0)
  idba_seti(handle, "p2", 0)
  idba_seti(handle, "rep_cod", 254)
rep_cod can be modified after calling idba_setcontextana to work with pseudoana values on different reports.



root 2007-06-20