ReferenceFrame.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_REFERENCE_FRAME_HPP
40 #define GNSSTK_REFERENCE_FRAME_HPP
41 
42 #include <iostream>
43 #include <string>
44 #include "EnumIterator.hpp"
45 
46 namespace gnsstk
47 {
48 
52  enum class ReferenceFrame
53  {
54  // add new frames BEFORE count, then add to
55  // asStrings/asReferenceFrame in ReferenceFrame.cpp and make
56  // parallel to this enum.
57 
58  // Unknown MUST BE FIRST, and MUST = 0
59  Unknown=0,
60  WGS84,
61  WGS84G730,
62  WGS84G873,
63  WGS84G1150,
64  WGS84G1674,
65  WGS84G1762,
66  ITRF,
67  ITRF94,
68  ITRF96,
69  ITRF97,
70  ITRF2000,
71  ITRF2005,
72  ITRF2008,
73  ITRF2014,
74  PZ90,
75  PZ90KGS,
76  CGCS2000,
77  // Last MUST BE LAST
78  Last
79  };
80 
84 
85  namespace StringUtils
86  {
88  std::string asString(ReferenceFrame e);
90  ReferenceFrame asReferenceFrame(const std::string& s);
91  }
92 
97  inline std::ostream& operator<<(std::ostream& os, ReferenceFrame f)
98  { return os << StringUtils::asString(f); }
99 
100 } // end of gnsstk namespace
101 
102 #endif // GNSSTK_REFERENCE_FRAME_HPP
gnsstk::ReferenceFrame
ReferenceFrame
Definition: ReferenceFrame.hpp:52
gnsstk::ReferenceFrame::WGS84G1674
@ WGS84G1674
WGS84, GPS week 1674 version.
gnsstk::ReferenceFrameIterator
EnumIterator< ReferenceFrame, ReferenceFrame::Unknown, ReferenceFrame::Last > ReferenceFrameIterator
Definition: ReferenceFrame.hpp:83
gnsstk::ReferenceFrame::Unknown
@ Unknown
unknown frame
gnsstk::ReferenceFrame::WGS84G1762
@ WGS84G1762
WGS84, GPS week 1762 version.
gnsstk::ReferenceFrame::ITRF94
@ ITRF94
ITRF, 1994 version.
gnsstk::StringUtils::asString
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
Definition: IonexStoreStrategy.cpp:46
gnsstk::StringUtils::asReferenceFrame
ReferenceFrame asReferenceFrame(const std::string &s)
Convert a string representation of ReferenceFrame to an enum.
Definition: ReferenceFrame.cpp:74
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::ReferenceFrame::ITRF2008
@ ITRF2008
ITRF, 2008 version.
gnsstk::ReferenceFrame::WGS84G730
@ WGS84G730
WGS84, GPS week 730 version.
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::ReferenceFrame::ITRF2000
@ ITRF2000
ITRF, 2000 version.
gnsstk::ReferenceFrame::Last
@ Last
Used to verify that all items are described at compile time.
gnsstk::ReferenceFrame::ITRF2014
@ ITRF2014
ITRF, 2014 version.
gnsstk::ReferenceFrame::WGS84
@ WGS84
WGS84, assumed to be the latest version.
EnumIterator.hpp
gnsstk::ReferenceFrame::ITRF
@ ITRF
ITRF, assumed to be the latest version.
gnsstk::ReferenceFrame::WGS84G1150
@ WGS84G1150
WGS84, GPS week 1150 version.
gnsstk::ReferenceFrame::PZ90KGS
@ PZ90KGS
PZ90 the "original".
gnsstk::ReferenceFrame::ITRF97
@ ITRF97
ITRF, 1997 version.
gnsstk::EnumIterator
Definition: EnumIterator.hpp:68
gnsstk::ReferenceFrame::PZ90
@ PZ90
PZ90 (GLONASS)
gnsstk::ReferenceFrame::ITRF96
@ ITRF96
ITRF, 1996 version.
gnsstk::ReferenceFrame::CGCS2000
@ CGCS2000
CGCS200 (BDS)
gnsstk::ReferenceFrame::ITRF2005
@ ITRF2005
ITRF, 2005 version.
gnsstk::ReferenceFrame::WGS84G873
@ WGS84G873
WGS84, GPS week 873 version.


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