/*! * \file glonass_gnav_utc_model.h * \brief Interface of a GLONASS GNAV UTC MODEL storage * \author Damian Miralles, 2017. dmiralles2009(at)gmail.com * * ------------------------------------------------------------------------- * * Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) * * GNSS-SDR is a software defined Global Navigation * Satellite Systems receiver * * This file is part of GNSS-SDR. * * GNSS-SDR is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * GNSS-SDR is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNSS-SDR. If not, see . * * ------------------------------------------------------------------------- */ #ifndef GNSS_SDR_GLONASS_GNAV_UTC_MODEL_H_ #define GNSS_SDR_GLONASS_GNAV_UTC_MODEL_H_ #include "boost/assign.hpp" #include #include /*! * \brief This class is a storage for the GLONASS GNAV UTC MODEL data as described in GLONASS ICD (Edition 5.1) * See http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf */ class Glonass_Gnav_Utc_Model { public: bool valid; // UTC double d_tau_c; //!< GLONASS time scale correction to UTC(SU) time. [s] /*! * Default constructor */ Glonass_Gnav_Utc_Model(); /*! * \brief Computes the Coordinated Universal Time (UTC) and * returns it in [s] (GLONASS ICD (Edition 5.1) Section 3.3.3 GLONASS Time) */ double utc_time(double glonass_time_corrected); template /* * \brief Serialize is a boost standard method to be called by the boost XML serialization. Here is used to save the ephemeris data on disk file. */ void serialize(Archive& archive, const unsigned int version) { using boost::serialization::make_nvp; if(version){}; archive & make_nvp("valid",valid); archive & make_nvp("d_tau_c",d_tau_c); } }; #endif