GNSS-SDR  0.0.13
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  * 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 
21 #ifndef GNSS_SDR_AGNSS_REF_LOCATION_H
22 #define GNSS_SDR_AGNSS_REF_LOCATION_H
23 
24 #include <boost/serialization/nvp.hpp>
25 
26 
27 /*!
28  * \brief Interface of an Assisted GNSS REFERENCE LOCATION storage
29  *
30  */
32 {
33 public:
34  /*!
35  * Default constructor
36  */
37  Agnss_Ref_Location() = default;
38 
39  double lat{};
40  double lon{};
41  double uncertainty{};
42  bool valid{};
43 
44  template <class Archive>
45 
46  /*!
47  * \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.
48  */
49  inline void serialize(Archive& archive, const unsigned int version)
50  {
51  using boost::serialization::make_nvp;
52  if (version)
53  {
54  };
55  archive& make_nvp("lat", lat);
56  archive& make_nvp("lon", lon);
57  archive& make_nvp("uncertainty", uncertainty);
58  archive& make_nvp("valid", valid);
59  }
60 };
61 
62 #endif
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.