SatelliteSystem.hpp
Go to the documentation of this file.
1 
8 //==============================================================================
9 //
10 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
11 //
12 // The GNSSTk is free software; you can redistribute it and/or modify
13 // it under the terms of the GNU Lesser General Public License as published
14 // by the Free Software Foundation; either version 3.0 of the License, or
15 // any later version.
16 //
17 // The GNSSTk is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public
23 // License along with GNSSTk; if not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
25 //
26 // This software was developed by Applied Research Laboratories at the
27 // University of Texas at Austin.
28 // Copyright 2004-2022, The Board of Regents of The University of Texas System
29 //
30 //==============================================================================
31 
32 //==============================================================================
33 //
34 // This software was developed by Applied Research Laboratories at the
35 // University of Texas at Austin, under contract to an agency or agencies
36 // within the U.S. Department of Defense. The U.S. Government retains all
37 // rights to use, duplicate, distribute, disclose, or release this software.
38 //
39 // Pursuant to DoD Directive 523024
40 //
41 // DISTRIBUTION STATEMENT A: This software has been approved for public
42 // release, distribution is unlimited.
43 //
44 //==============================================================================
45 
46 #ifndef GNSSTK_SATELLITESYSTEM_HPP
47 #define GNSSTK_SATELLITESYSTEM_HPP
48 
49 #include <string>
50 #include "EnumIterator.hpp"
51 
52 namespace gnsstk
53 {
55  enum class SatelliteSystem
56  {
57  Unknown,
58  GPS,
59  Galileo,
60  Glonass,
61  Geosync,
62  LEO,
63  Transit,
64  BeiDou,
65  QZSS,
66  IRNSS,
67  Mixed,
69  Last,
70  }; // enum class SatelliteSystem
71 
75 
76  namespace StringUtils
77  {
79  std::string asString(SatelliteSystem e) noexcept;
81  SatelliteSystem asSatelliteSystem(const std::string& s) noexcept;
82  }
83 
97  { return StringUtils::asString(s); }
98 
108  const std::string& s)
109  { return StringUtils::asSatelliteSystem(s); }
110 
111 } // namespace gnsstk
112 
113 #endif // GNSSTK_SATELLITESYSTEM_HPP
gnsstk::SatelliteSystem::IRNSS
@ IRNSS
Official name changed from IRNSS to NavIC.
gnsstk::SatelliteSystem::LEO
@ LEO
gnsstk::SatelliteSystem
SatelliteSystem
Supported satellite systems.
Definition: SatelliteSystem.hpp:55
gnsstk::SatelliteSystem::Transit
@ Transit
gnsstk::StringUtils::asString
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
Definition: IonexStoreStrategy.cpp:46
gnsstk::SatelliteSystem::Geosync
@ Geosync
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::convertStringToSatelliteSystem
SatelliteSystem convertStringToSatelliteSystem(const std::string &s)
Definition: SatelliteSystem.hpp:107
gnsstk::SatelliteSystem::GPS
@ GPS
gnsstk::SatelliteSystem::Unknown
@ Unknown
gnsstk::SatelliteSystem::Last
@ Last
Used to verify that all items are described at compile time.
gnsstk::SatelliteSystemIterator
EnumIterator< SatelliteSystem, SatelliteSystem::Unknown, SatelliteSystem::Last > SatelliteSystemIterator
Definition: SatelliteSystem.hpp:74
EnumIterator.hpp
gnsstk::SatelliteSystem::UserDefined
@ UserDefined
gnsstk::EnumIterator
Definition: EnumIterator.hpp:68
gnsstk::SatelliteSystem::Mixed
@ Mixed
gnsstk::SatelliteSystem::Glonass
@ Glonass
gnsstk::SatelliteSystem::BeiDou
@ BeiDou
aka Compass
gnsstk::StringUtils::asSatelliteSystem
SatelliteSystem asSatelliteSystem(const std::string &s) noexcept
Convert a string name to an SatelliteSystem.
Definition: SatelliteSystem.cpp:73
gnsstk::convertSatelliteSystemToString
std::string convertSatelliteSystemToString(SatelliteSystem s)
Definition: SatelliteSystem.hpp:96
gnsstk::SatelliteSystem::QZSS
@ QZSS
gnsstk::SatelliteSystem::Galileo
@ Galileo


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