GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
tracking_true_obs_reader.h
Go to the documentation of this file.
1 /*!
2  * \file tracking_true_obs_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_TRACKING_TRUE_OBS_READER_H
21 #define GNSS_SDR_TRACKING_TRUE_OBS_READER_H
22 
23 #include <cstdint>
24 #include <fstream>
25 #include <string>
26 #include <vector>
27 
29 {
30 public:
32  bool read_binary_obs();
33  bool restart();
34  int64_t num_epochs();
35  bool open_obs_file(std::string out_file);
36  void close_obs_file();
37  bool d_dump;
38 
39  double signal_timestamp_s;
40  double acc_carrier_phase_cycles;
41  double doppler_l1_hz;
42  double prn_delay_chips;
43  double tow;
44 
45 private:
46  std::string d_dump_filename;
47  std::ifstream d_dump_file;
48 };
49 
50 #endif // GNSS_SDR_RACKING_TRUE_OBS_READER_H