GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
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{
35public:
36 /*!
37 * Default constructor
38 */
39 Agnss_Ref_Time() = default;
40
41 double tow{};
42 double week{};
43 double seconds{};
44 double microseconds{};
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
51 * serialization. Here is used to save the ref time data on disk file.
52 */
53 inline void serialize(Archive& archive, const unsigned int version)
54 {
55 if (version)
56 {
57 };
58 archive& BOOST_SERIALIZATION_NVP(tow);
59 archive& BOOST_SERIALIZATION_NVP(week);
60 archive& BOOST_SERIALIZATION_NVP(seconds);
61 archive& BOOST_SERIALIZATION_NVP(microseconds);
62 archive& BOOST_SERIALIZATION_NVP(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...
Agnss_Ref_Time()=default