NavSignalID.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_NAVSIGNALID_HPP
40 #define GNSSTK_NAVSIGNALID_HPP
41 
42 #include <iostream>
43 #include <set>
44 #include "SatelliteSystem.hpp"
45 #include "ObsID.hpp"
46 #include "NavType.hpp"
47 
48 namespace gnsstk
49 {
51 
52 
55  {
56  public:
58  NavSignalID();
59 
68  NavType nmt, uint32_t mcode = 0, uint32_t mcodeMask = -1);
69 
74  NavSignalID(SatelliteSystem sys, const ObsID& oid, NavType nmt);
75 
77  bool operator<(const NavSignalID& right) const
78  { return (order(right) < 0); }
80  bool operator==(const NavSignalID& right) const
81  { return (order(right) == 0); }
83  bool operator!=(const NavSignalID& right) const
84  { return (order(right) != 0); }
85 
87  virtual bool isWild() const;
88 
89  // Having the system here may seem redundant but if we're
90  // identifying signals across an entire system (i.e. without
91  // a specific PRN or other unique satellite ID as used in
92  // NavSatelliteID) we need to identify the system as well to
93  // differentiate e.g. between GPS L1 C/A and QZSS L1 C/A nav.
97 
98  protected:
103  int order(const NavSignalID& right) const;
104  };
105 
107  typedef std::set<NavSignalID> NavSignalSet;
108 
109 
110  inline std::ostream& operator<<(std::ostream& s, const NavSignalID& nsid)
111  {
112  s << StringUtils::asString(nsid.system) << " "
113  << nsid.obs << " "
114  << StringUtils::asString(nsid.nav);
115  return s;
116  }
117 
119 
120 }
121 
122 #endif // GNSSTK_NAVSIGNALID_HPP
gnsstk::NavSignalID::nav
NavType nav
Navigation message structure of this signal.
Definition: NavSignalID.hpp:96
SatelliteSystem.hpp
gnsstk::CarrierBand
CarrierBand
Definition: CarrierBand.hpp:54
NavType.hpp
gnsstk::SatelliteSystem
SatelliteSystem
Supported satellite systems.
Definition: SatelliteSystem.hpp:55
example5.oid
oid
Definition: example5.py:29
gnsstk::StringUtils::asString
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
Definition: IonexStoreStrategy.cpp:46
gnsstk::NavSignalID::isWild
virtual bool isWild() const
return true if any of the fields are set to match wildcards.
Definition: NavSignalID.cpp:100
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::NavSignalID::operator!=
bool operator!=(const NavSignalID &right) const
Inequality check (all data members)
Definition: NavSignalID.hpp:83
gnsstk::NavSignalID::order
int order(const NavSignalID &right) const
Definition: NavSignalID.cpp:83
gnsstk::NavSignalID::obs
ObsID obs
Carrier, tracking code, etc.
Definition: NavSignalID.hpp:95
gnsstk::NavSignalID::system
SatelliteSystem system
GNSS for this signal.
Definition: NavSignalID.hpp:94
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::NavSignalID
Class used to identify navigation data signal types.
Definition: NavSignalID.hpp:54
gnsstk::NavSignalID::operator<
bool operator<(const NavSignalID &right) const
Sorting so we can use this class as a map key.
Definition: NavSignalID.hpp:77
ObsID.hpp
gnsstk::TrackingCode
TrackingCode
Definition: TrackingCode.hpp:64
gnsstk::NavSignalID::operator==
bool operator==(const NavSignalID &right) const
Equality check (all data members)
Definition: NavSignalID.hpp:80
gnsstk::NavSignalSet
std::set< NavSignalID > NavSignalSet
Set of nav data signal identifiers.
Definition: NavSignalID.hpp:107
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
gnsstk::NavSignalID::NavSignalID
NavSignalID()
Set all data members to "Unknown".
Definition: NavSignalID.cpp:44


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