NavSatelliteID.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 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #ifndef GNSSTK_NAVSATELLITEID_HPP
40 #define GNSSTK_NAVSATELLITEID_HPP
41 
42 #include <iostream>
43 #include "NavSignalID.hpp"
44 #include "SatID.hpp"
45 #include "ObsID.hpp"
46 #include "NavID.hpp"
47 
48 namespace gnsstk
49 {
51 
52 
57  class NavSatelliteID : public NavSignalID
58  {
59  public:
62 
66  NavSatelliteID(const NavSignalID& right);
67 
76  NavSatelliteID(unsigned long subj, unsigned long xmit,
78  NavType nmt);
79 
88  NavSatelliteID(unsigned long subj, SatelliteSystem sys, CarrierBand car,
89  TrackingCode track, XmitAnt ant, int freqOffs,
90  bool freqOffsWild, NavType nmt = NavType::Any);
91 
100  NavSatelliteID(unsigned long subj, SatelliteSystem sys, const ObsID& oid,
101  NavType nmt = NavType::Any);
102 
111  NavSatelliteID(unsigned long subj,
112  SatelliteSystem sys, CarrierBand car, TrackingCode track,
113  NavType nmt);
114 
124  NavSatelliteID(unsigned long subj, const SatID& xmit, const ObsID& oid,
125  const NavID& navid);
126 
137  NavSatelliteID(const SatID& subj, const SatID& xmit, const ObsID& oid,
138  const NavID& navid);
139 
147  NavSatelliteID(const SatID& subj, const SatID& xmit, CarrierBand car,
148  TrackingCode track, NavType nmt);
149 
153  NavSatelliteID(const SatID& subj);
154 
156  bool operator<(const NavSatelliteID& right) const;
158  bool operator==(const NavSatelliteID& right) const;
160  bool operator!=(const NavSatelliteID& right) const
161  { return !(operator==(right)); }
162 
164  bool isWild() const override;
165 
167  bool isGLOFDMA() const;
168 
171  };
172 
173 
174  typedef std::set<NavSatelliteID> NavSatelliteIDSet;
175 
176  inline std::ostream& operator<<(std::ostream& s, const NavSatelliteID& nsid)
177  {
178  s << "subj:" << nsid.sat << " xmit:" << nsid.xmitSat << " "
179  << static_cast<NavSignalID>(nsid);
180  return s;
181  }
182 
184 
185 }
186 
187 #endif // GNSSTK_NAVSATELLITEID_HPP
gnsstk::NavSatelliteID::operator<
bool operator<(const NavSatelliteID &right) const
Sorting so we can use this class as a map key.
Definition: NavSatelliteID.cpp:140
gnsstk::NavSatelliteID::isWild
bool isWild() const override
Return true if any of the fields are set to match wildcards.
Definition: NavSatelliteID.cpp:166
gnsstk::CarrierBand
CarrierBand
Definition: CarrierBand.hpp:54
gnsstk::NavSatelliteID
Definition: NavSatelliteID.hpp:57
gnsstk::NavSatelliteID::NavSatelliteID
NavSatelliteID()
Sets the IDs to 0.
Definition: NavSatelliteID.cpp:44
gnsstk::SatelliteSystem
SatelliteSystem
Supported satellite systems.
Definition: SatelliteSystem.hpp:55
gnsstk::NavSatelliteIDSet
std::set< NavSatelliteID > NavSatelliteIDSet
Definition: NavSatelliteID.hpp:174
gnsstk::NavSatelliteID::operator!=
bool operator!=(const NavSatelliteID &right) const
Implicit != not available.
Definition: NavSatelliteID.hpp:160
example5.oid
oid
Definition: example5.py:29
gnsstk::SatID
Definition: SatID.hpp:89
SatID.hpp
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::NavType::Any
@ Any
Used to match any nav code.
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::NavSatelliteID::sat
SatID sat
ID of satellite to which the nav data applies.
Definition: NavSatelliteID.hpp:169
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::XmitAnt
XmitAnt
Definition: XmitAnt.hpp:53
gnsstk::NavSignalID
Class used to identify navigation data signal types.
Definition: NavSignalID.hpp:54
ObsID.hpp
gnsstk::TrackingCode
TrackingCode
Definition: TrackingCode.hpp:64
gnsstk::NavSatelliteID::isGLOFDMA
bool isGLOFDMA() const
Return true if this object identifies a GLONASS FDMA signal.
Definition: NavSatelliteID.cpp:173
NavID.hpp
gnsstk::NavSatelliteID::operator==
bool operator==(const NavSatelliteID &right) const
Comparison, including wildcards.
Definition: NavSatelliteID.cpp:155
gnsstk::NavID
Definition: NavID.hpp:61
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
gnsstk::NavSatelliteID::xmitSat
SatID xmitSat
ID of the satellite transmitting the nav data.
Definition: NavSatelliteID.hpp:170
NavSignalID.hpp


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