GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
gpx_printer.h
Go to the documentation of this file.
1 /*!
2  * \file gpx_printer.h
3  * \brief Interface of a class that prints PVT information to a gpx file
4  * \author Álvaro Cebrián Juan, 2018. acebrianjuan(at)gmail.com
5  *
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 
22 #ifndef GNSS_SDR_GPX_PRINTER_H
23 #define GNSS_SDR_GPX_PRINTER_H
24 
25 
26 #include <fstream>
27 #include <string>
28 
29 class Pvt_Solution;
30 
31 /*!
32  * \brief Prints PVT information to GPX format file
33  *
34  * See https://www.topografix.com/gpx.asp
35  */
37 {
38 public:
39  explicit Gpx_Printer(const std::string& base_path = ".");
40  ~Gpx_Printer();
41  bool set_headers(const std::string& filename, bool time_tag_name = true);
42  bool print_position(const Pvt_Solution* const position, bool print_average_values);
43  bool close_file();
44 
45 private:
46  std::ofstream gpx_file;
47  std::string gpx_filename;
48  std::string indent;
49  std::string gpx_base_path;
50  bool positions_printed;
51 };
52 
53 #endif
Prints PVT information to GPX format file.
Definition: gpx_printer.h:36
Base class for a PVT solution.
Definition: pvt_solution.h:33