LNavEphMaker.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 #ifndef LNAVEPHMAKER_HPP
40 #define LNAVEPHMAKER_HPP
41 
42 #include "NavFilter.hpp"
43 #include "LNavFilterData.hpp"
44 
45 namespace gnsstk
46 {
48 
49 
53  : std::binary_function<LNavFilterData*,LNavFilterData*,bool>
54  {
55  inline bool operator()(const LNavFilterData*const& l,
56  const LNavFilterData*const& r)
57  const;
58  };
59 
75  class LNavEphMaker : public NavFilter
76  {
77  public:
79  typedef std::vector<LNavFilterData*> EphGroup;
81  typedef std::list<EphGroup*> EphList;
83  typedef std::map<LNavFilterData*, EphGroup, LNavEphMakerSort> EphMap;
84 
85  LNavEphMaker();
86 
106  virtual void validate(NavMsgList& msgBitsIn, NavMsgList& msgBitsOut);
107 
108  virtual void finalize(NavMsgList& msgBitsOut);
109 
111  virtual unsigned processingDepth() const noexcept
112  { return 3; }
113 
115  virtual std::string filterName() const noexcept
116  { return "EphMaker"; }
117 
126  };
127 
129 
131  operator()(const LNavFilterData*const& l, const LNavFilterData*const& r)
132  const
133  {
134  if (l->stationID < r->stationID) return true;
135  if (l->stationID > r->stationID) return false;
136  if (l->rxID < r->rxID) return true;
137  if (l->rxID > r->rxID) return false;
138  if (l->prn < r->prn) return true;
139  if (l->prn > r->prn) return false;
140  if (l->carrier < r->carrier) return true;
141  if (l->carrier > r->carrier) return false;
142  if (l->code < r->code) return true;
143  // the contents of sf won't be unique, nor will timeStamp,
144  // but since we ignore those values in the sort function,
145  // they are not relevant to the map key.
146  return false;
147  }
148 
149 }
150 
151 #endif // LNAVEPHMAKER_HPP
gnsstk::LNavEphMaker::validate
virtual void validate(NavMsgList &msgBitsIn, NavMsgList &msgBitsOut)
Definition: LNavEphMaker.cpp:51
gnsstk::NavFilterKey::carrier
CarrierBand carrier
carrier band of navigation message
Definition: NavFilterKey.hpp:79
const
#define const
Definition: getopt.c:43
gnsstk::LNavEphMaker::filterName
virtual std::string filterName() const noexcept
Return the filter name.
Definition: LNavEphMaker.hpp:115
gnsstk::LNavEphMaker::EphMap
std::map< LNavFilterData *, EphGroup, LNavEphMakerSort > EphMap
Ephemerides by stn/rx/prn/carrier/code.
Definition: LNavEphMaker.hpp:83
LNavFilterData.hpp
gnsstk::LNavEphMaker::EphGroup
std::vector< LNavFilterData * > EphGroup
Group of 3 subframes making up an ephemeris.
Definition: LNavEphMaker.hpp:79
gnsstk::LNavEphMakerSort::operator()
bool operator()(const LNavFilterData *const &l, const LNavFilterData *const &r) const
Definition: LNavEphMaker.hpp:131
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
NavFilter.hpp
gnsstk::LNavEphMaker::EphList
std::list< EphGroup * > EphList
List of complete ephemerides.
Definition: LNavEphMaker.hpp:81
gnsstk::LNavEphMaker::LNavEphMaker
LNavEphMaker()
Definition: LNavEphMaker.cpp:45
gnsstk::NavFilter
Definition: NavFilter.hpp:55
gnsstk::LNavEphMakerSort
Definition: LNavEphMaker.hpp:52
gnsstk::LNavEphMaker::finalize
virtual void finalize(NavMsgList &msgBitsOut)
Definition: LNavEphMaker.cpp:101
gnsstk::NavFilterKey::prn
uint32_t prn
identifier of broadcasting satellite
Definition: NavFilterKey.hpp:78
gnsstk::NavFilterKey::stationID
std::string stationID
site/station identifier for data source
Definition: NavFilterKey.hpp:76
gnsstk::NavFilterKey::code
gnsstk::TrackingCode code
ranging code of navigation message
Definition: NavFilterKey.hpp:80
gnsstk::LNavFilterData
Definition: LNavFilterData.hpp:52
gnsstk::LNavEphMaker::processingDepth
virtual unsigned processingDepth() const noexcept
Internally stores 3 epochs worth of subframe data.
Definition: LNavEphMaker.hpp:111
gnsstk::NavFilter::NavMsgList
std::list< NavFilterKey * > NavMsgList
Definition: NavFilter.hpp:58
gnsstk::LNavEphMaker::completeEphs
EphList completeEphs
Definition: LNavEphMaker.hpp:125
gnsstk::NavFilterKey::rxID
std::string rxID
receiver identifier for data source
Definition: NavFilterKey.hpp:77
gnsstk::LNavEphMaker
Definition: LNavEphMaker.hpp:75
gnsstk::LNavEphMaker::ephemerides
EphMap ephemerides
Storage for the assembly of ephemerides.
Definition: LNavEphMaker.hpp:119


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39