Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
void elaboradar::Assets::write_vpr_heating ( int  value) const

Write a new value to $VPR_HEATING (counter of consecutive vpr calculated, see scientific documentation)

Parametri
[in]value- value to be written

Definizione alla linea 265 del file assets.cpp.

Referenzia radarelab::File::open_from_env().

266 {
267  LOG_CATEGORY("radar.vpr");
268  File out(logging_category);
269  if (!out.open_from_env("VPR_HEATING", "wt"))
270  return;
271 
272  if (fprintf(out, " %i \n", value) < 0)
273  LOG_ERROR("Cannot write $VPR_HEATING=%s: %s", out.name(), strerror(errno));
274 }
Open a file taking its name from a given env variable.
Definition: utils.h:21