Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato

◆ write_vpr_heating()

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 267 del file assets.cpp.

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

Referenzia radarelab::File::open_from_env().