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