Elaboradar  0.1
 Tutto Classi Namespace File Funzioni Variabili Tipi enumerati (enum) Gruppi
double elaboradar::Assets::read_file_hray ( 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 171 del file assets.cpp.

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

172 {
173  File fd(logging_category);
174  if (!fd.open(fname_out_pp_bloc("h_ray.txt"), "rb", "hray"))
175  throw std::runtime_error("cannot open hray file");
176  return parse_hray(fd, on_sample);
177 }
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