2013-03-14 17:57:50 +00:00
|
|
|
/*!
|
2018-11-20 08:28:47 +00:00
|
|
|
* \file agnss_ref_time.h
|
|
|
|
* \brief Interface of an Assisted GNSS REFERENCE TIME storage
|
2013-03-14 17:57:50 +00:00
|
|
|
* \author Javier Arribas, 2013. jarribas(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2013-03-14 17:57:50 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2013-03-14 17:57:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_AGNSS_REF_TIME_H
|
|
|
|
#define GNSS_SDR_AGNSS_REF_TIME_H
|
2013-03-14 17:57:50 +00:00
|
|
|
|
2014-04-25 19:48:52 +00:00
|
|
|
#include <boost/serialization/nvp.hpp>
|
2013-03-14 17:57:50 +00:00
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
/** \addtogroup Core
|
|
|
|
* \{ */
|
|
|
|
/** \addtogroup System_Parameters
|
|
|
|
* \{ */
|
|
|
|
|
2013-03-14 17:57:50 +00:00
|
|
|
|
|
|
|
/*!
|
2018-11-20 08:28:47 +00:00
|
|
|
* \brief Interface of an Assisted GNSS REFERENCE TIME storage
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
|
|
|
*/
|
2018-11-20 08:28:47 +00:00
|
|
|
class Agnss_Ref_Time
|
2013-03-14 17:57:50 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/*!
|
|
|
|
* Default constructor
|
|
|
|
*/
|
2020-06-10 08:15:59 +00:00
|
|
|
Agnss_Ref_Time() = default;
|
|
|
|
|
2021-02-20 23:01:56 +00:00
|
|
|
double tow{};
|
2021-02-23 10:57:24 +00:00
|
|
|
double week{};
|
|
|
|
double seconds{};
|
|
|
|
double microseconds{};
|
2020-06-23 07:47:58 +00:00
|
|
|
bool valid{};
|
2014-04-25 19:48:52 +00:00
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
template <class Archive>
|
2014-04-25 19:48:52 +00:00
|
|
|
|
|
|
|
/*!
|
2021-02-20 23:01:56 +00:00
|
|
|
* \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.
|
2014-04-25 19:48:52 +00:00
|
|
|
*/
|
2017-08-21 09:45:12 +00:00
|
|
|
inline void serialize(Archive& archive, const unsigned int version)
|
2016-05-02 21:46:30 +00:00
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
if (version)
|
|
|
|
{
|
|
|
|
};
|
2021-02-20 23:01:56 +00:00
|
|
|
archive& BOOST_SERIALIZATION_NVP(tow);
|
2021-02-23 10:57:24 +00:00
|
|
|
archive& BOOST_SERIALIZATION_NVP(week);
|
|
|
|
archive& BOOST_SERIALIZATION_NVP(seconds);
|
|
|
|
archive& BOOST_SERIALIZATION_NVP(microseconds);
|
2021-02-20 23:01:56 +00:00
|
|
|
archive& BOOST_SERIALIZATION_NVP(valid);
|
2016-05-02 21:46:30 +00:00
|
|
|
}
|
2013-03-14 17:57:50 +00:00
|
|
|
};
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
|
|
|
|
/** \} */
|
|
|
|
/** \} */
|
|
|
|
#endif // GNSS_SDR_AGNSS_REF_TIME_H
|