GNSS-SDR  0.0.19
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  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 #ifndef GNSS_SDR_TLM_DUMP_READER_H
18 #define GNSS_SDR_TLM_DUMP_READER_H
19 
20 #include <cstdint>
21 #include <fstream>
22 #include <string>
23 #include <vector>
24 
26 {
27 public:
28  ~Tlm_Dump_Reader();
29  bool read_binary_obs();
30  bool restart();
31  int64_t num_epochs();
32  bool open_obs_file(std::string out_file);
33 
34  // telemetry decoder dump variables
35  double TOW_at_current_symbol;
36  uint64_t Tracking_sample_counter;
37  double d_TOW_at_Preamble;
38  int32_t nav_symbol;
39  int32_t prn;
40 
41 private:
42  std::string d_dump_filename;
43  std::ifstream d_dump_file;
44 };
45 
46 #endif // GNSS_SDR_TLM_DUMP_READER_H