GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
tlm_dump_reader.h
Go to the documentation of this file.
1 /*!
2  * \file tlm_dump_reader.h
3  * \brief Helper file for unit testing
4  * \author Javier Arribas, 2017. jarribas(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
9  *
10  * GNSS-SDR is a software defined Global Navigation
11  * Satellite Systems receiver
12  *
13  * This file is part of GNSS-SDR.
14  *
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 #ifndef GNSS_SDR_TLM_DUMP_READER_H
21 #define GNSS_SDR_TLM_DUMP_READER_H
22 
23 #include <cstdint>
24 #include <fstream>
25 #include <string>
26 #include <vector>
27 
29 {
30 public:
31  ~Tlm_Dump_Reader();
32  bool read_binary_obs();
33  bool restart();
34  int64_t num_epochs();
35  bool open_obs_file(std::string out_file);
36 
37  // telemetry decoder dump variables
38  double TOW_at_current_symbol;
39  uint64_t Tracking_sample_counter;
40  double d_TOW_at_Preamble;
41 
42 private:
43  std::string d_dump_filename;
44  std::ifstream d_dump_file;
45 };
46 
47 #endif // GNSS_SDR_TLM_DUMP_READER_H