NavID.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 GNSSTK_NAVID_HPP
40 #define GNSSTK_NAVID_HPP
41 
42 #include <iostream>
43 #include <iomanip>
44 #include <sstream>
45 #include "gps_constants.hpp"
46 
47 #include "SatID.hpp"
48 #include "ObsID.hpp"
49 #include "NavType.hpp"
50 
56 namespace gnsstk
57 {
59 
60 
61  class NavID
62  {
63  public:
66 
76  NavID( const SatID& sidr, const ObsID& oidr );
77 
78  NavID( const NavType nt) { navType = nt; }
79 
80  NavID( const std::string& s );
81 
83  void dump(std::ostream& s) const
84  {
86  }
87 
89  bool operator==(const NavID& right) const
90  { return (navType == right.navType); }
91 
93  bool operator!=(const NavID& right) const
94  { return !(operator==(right)); }
95 
97  bool operator<(const NavID& right) const
98  { return (navType<right.navType); }
99 
101  bool operator>(const NavID& right) const
102  { return (!operator<(right) && !operator==(right)); }
103 
105  bool operator<=(const NavID& right) const
106  { return (operator<(right) || operator==(right)); }
107 
109  bool operator>=(const NavID& right) const
110  { return !(operator<(right)); }
111 
113  }; // class NavID
114 
116  inline std::ostream& operator<<(std::ostream& s, const NavID& p)
117  {
118  p.dump(s);
119  return s;
120  }
121 
123 
124  namespace StringUtils
125  {
127  inline std::string asString(const NavID& p)
128  {
129  std::ostringstream oss;
130  p.dump(oss);
131  return oss.str();
132  }
133  }
134 
135 } // namespace gnsstk
136 
137 #endif
gnsstk::NavType::Unknown
@ Unknown
Uninitialized value.
gnsstk::NavID::dump
void dump(std::ostream &s) const
Convenience output method.
Definition: NavID.hpp:83
gnsstk::NavID::operator>
bool operator>(const NavID &right) const
operator > for NavID
Definition: NavID.hpp:101
NavType.hpp
gps_constants.hpp
gnsstk::SatID
Definition: SatID.hpp:89
SatID.hpp
gnsstk::StringUtils::asString
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
Definition: IonexStoreStrategy.cpp:46
gnsstk::NavID::NavID
NavID(const NavType nt)
Definition: NavID.hpp:78
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::NavID::operator<
bool operator<(const NavID &right) const
operator < for NavID : order by system, then number
Definition: NavID.hpp:97
gnsstk::NavID::operator>=
bool operator>=(const NavID &right) const
operator >= for NavID
Definition: NavID.hpp:109
gnsstk::NavID::operator==
bool operator==(const NavID &right) const
operator == for NavID
Definition: NavID.hpp:89
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::convertNavTypeToString
std::string convertNavTypeToString(NavType e)
Definition: NavType.hpp:98
gnsstk::NavID::navType
NavType navType
navType for this satellite
Definition: NavID.hpp:112
ObsID.hpp
gnsstk::NavID::operator<=
bool operator<=(const NavID &right) const
operator <= for NavID
Definition: NavID.hpp:105
gnsstk::NavID
Definition: NavID.hpp:61
gnsstk::NavID::operator!=
bool operator!=(const NavID &right) const
operator != for NavID
Definition: NavID.hpp:93
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
gnsstk::NavID::NavID
NavID()
empty constructor, creates an invalid object
Definition: NavID.hpp:65


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