Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
double elaboradar::Assets::read_file_hray_inf ( std::function< void(unsigned el, unsigned bin, double value)>  on_sample)

Read the hray file, calling a callback on each parsed value.

Returns the value of dtrs.

Definizione alla linea 179 del file assets.cpp.

Referenzia fname_out_pp_bloc(), e radarelab::File::open().

180 {
181  File fd(logging_category);
182  if (!fd.open(fname_out_pp_bloc("h_rayinf.txt"), "rb", "hray inf"))
183  throw std::runtime_error("cannot open hray inf file");
184  return parse_hray(fd, on_sample);
185 }
std::string fname_out_pp_bloc(const char *suffix) const
Compute the file name of a date/time based file in $DIR_OUT_PP_BLOC.
Definition: assets.cpp:187
Open a file taking its name from a given env variable.
Definition: utils.h:21