Read the value of $VPR_HEATING (counter of consecutive vpr calculated, see scientific documentation)
- Restituisce
- 0 if the file does not exist or cannot be read
-
The value of $VPR_HEATING
Definizione alla linea 248 del file assets.cpp.
Referenzia radarelab::File::open_from_env().
250 LOG_CATEGORY(
"radar.vpr");
251 File in(logging_category);
252 if (!in.open_from_env(
"VPR_HEATING",
"rt"))
256 if (fscanf(in,
"%i ", &heating) != 1)
258 LOG_ERROR(
"Cannot read $VPR_HEATING=%s: %s", in.name(), strerror(errno));
Open a file taking its name from a given env variable.