GNSS-SDR  0.0.14
An Open Source GNSS Software Defined Receiver
agnss_ref_time.h
Go to the documentation of this file.
1 /*!
2  * \file agnss_ref_time.h
3  * \brief Interface of an Assisted GNSS REFERENCE TIME 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_TIME_H
19 #define GNSS_SDR_AGNSS_REF_TIME_H
20 
21 #include <boost/serialization/nvp.hpp>
22 
23 /** \addtogroup Core
24  * \{ */
25 /** \addtogroup System_Parameters
26  * \{ */
27 
28 
29 /*!
30  * \brief Interface of an Assisted GNSS REFERENCE TIME storage
31  *
32  */
34 {
35 public:
36  /*!
37  * Default constructor
38  */
39  Agnss_Ref_Time() = default;
40 
41  double d_TOW{};
42  double d_Week{};
43  double d_tv_sec{};
44  double d_tv_usec{};
45  bool valid{};
46 
47  template <class Archive>
48 
49  /*!
50  * \brief Serialize is a boost standard method to be called by the boost XML serialization. Here is used to save the ref time data 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& make_nvp("d_TOW", d_TOW);
59  archive& make_nvp("d_Week", d_Week);
60  archive& make_nvp("d_tv_sec", d_tv_sec);
61  archive& make_nvp("d_tv_usec", d_tv_usec);
62  archive& make_nvp("valid", valid);
63  }
64 };
65 
66 
67 /** \} */
68 /** \} */
69 #endif // GNSS_SDR_AGNSS_REF_TIME_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...
Interface of an Assisted GNSS REFERENCE TIME storage.
Agnss_Ref_Time()=default