GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
agnss_ref_location.h
Go to the documentation of this file.
1 /*!
2  * \file agnss_ref_location.h
3  * \brief Interface of an Assisted GNSS REFERENCE LOCATION storage
4  * \author Javier Arribas, 2013. 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 
18 #ifndef GNSS_SDR_AGNSS_REF_LOCATION_H
19 #define GNSS_SDR_AGNSS_REF_LOCATION_H
20 
21 #include <boost/serialization/nvp.hpp>
22 
23 /** \addtogroup Core
24  * \{ */
25 /** \addtogroup System_Parameters
26  * Classes containing info about system parameters for the different GNSS.
27  * \{ */
28 
29 /*!
30  * \brief Interface of an Assisted GNSS REFERENCE LOCATION storage
31  *
32  */
34 {
35 public:
36  /*!
37  * Default constructor
38  */
39  Agnss_Ref_Location() = default;
40 
41  double lat{};
42  double lon{};
43  double uncertainty{};
44  bool valid{};
45 
46  template <class Archive>
47 
48  /*!
49  * \brief Serialize is a boost standard method to be called by the boost XML
50  * serialization. Here is used to save the Ref location on disk file.
51  */
52  inline void serialize(Archive& archive, const unsigned int version)
53  {
54  using boost::serialization::make_nvp;
55  if (version)
56  {
57  };
58  archive& BOOST_SERIALIZATION_NVP(lat);
59  archive& BOOST_SERIALIZATION_NVP(lon);
60  archive& BOOST_SERIALIZATION_NVP(uncertainty);
61  archive& BOOST_SERIALIZATION_NVP(valid);
62  }
63 };
64 
65 
66 /** \} */
67 /** \} */
68 #endif // GNSS_SDR_AGNSS_REF_LOCATION_H
void serialize(Archive &archive, const unsigned int version)
Serialize is a boost standard method to be called by the boost XML serialization. Here is used to sav...
Agnss_Ref_Location()=default
Interface of an Assisted GNSS REFERENCE LOCATION storage.