2013-03-14 17:57:50 +00:00
|
|
|
/*!
|
2018-11-20 08:28:47 +00:00
|
|
|
* \file agnss_ref_location.h
|
|
|
|
* \brief Interface of an Assisted GNSS REFERENCE LOCATION storage
|
2013-03-14 17:57:50 +00:00
|
|
|
* \author Javier Arribas, 2013. jarribas(at)cttc.es
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
|
|
|
* 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
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
|
|
|
* 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
|
2018-05-13 20:49:11 +00:00
|
|
|
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2018-11-20 08:28:47 +00:00
|
|
|
#ifndef GNSS_SDR_AGNSS_REF_LOCATION_H_
|
|
|
|
#define GNSS_SDR_AGNSS_REF_LOCATION_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
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2018-11-20 08:28:47 +00:00
|
|
|
* \brief Interface of an Assisted GNSS REFERENCE LOCATION storage
|
2013-03-14 17:57:50 +00:00
|
|
|
*
|
|
|
|
*/
|
2018-11-20 08:28:47 +00:00
|
|
|
class Agnss_Ref_Location
|
2013-03-14 17:57:50 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-07-04 13:47:40 +00:00
|
|
|
bool valid;
|
2013-03-14 17:57:50 +00:00
|
|
|
double lat;
|
|
|
|
double lon;
|
|
|
|
double uncertainty;
|
|
|
|
/*!
|
|
|
|
* Default constructor
|
|
|
|
*/
|
2018-11-20 08:28:47 +00:00
|
|
|
Agnss_Ref_Location();
|
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
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Serialize is a boost standard method to be called by the boost XML serialization. Here is used to save the Ref location on disk file.
|
|
|
|
*/
|
2017-08-21 09:45:12 +00:00
|
|
|
inline void serialize(Archive& archive, const unsigned int version)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
|
|
|
using boost::serialization::make_nvp;
|
|
|
|
if (version)
|
|
|
|
{
|
|
|
|
};
|
|
|
|
archive& make_nvp("valid", valid);
|
|
|
|
archive& make_nvp("lat", lat);
|
|
|
|
archive& make_nvp("lon", lon);
|
|
|
|
archive& make_nvp("uncertainty", uncertainty);
|
|
|
|
}
|
2013-03-14 17:57:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|