GNSS-SDR  0.0.14
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 serialization. Here is used to save the Ref location on disk file.
50  */
51  inline void serialize(Archive& archive, const unsigned int version)
52  {
53  using boost::serialization::make_nvp;
54  if (version)
55  {
56  };
57  archive& make_nvp("lat", lat);
58  archive& make_nvp("lon", lon);
59  archive& make_nvp("uncertainty", uncertainty);
60  archive& make_nvp("valid", valid);
61  }
62 };
63 
64 
65 /** \} */
66 /** \} */
67 #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.