GroupPathCorrector_T.cpp
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 #include "TestUtil.hpp"
40 #include "GroupPathCorrector.hpp"
41 #include "NavLibrary.hpp"
43 #include "CivilTime.hpp"
44 
45 namespace gnsstk
46 {
47  std::ostream& operator<<(std::ostream& s, CorrectorType t)
48  {
49  s << StringUtils::asString(t);
50  return s;
51  }
52 }
53 
54 
57 {
58 public:
60  {}
61  bool getCorr(const gnsstk::Position& rxPos, const gnsstk::Position& svPos,
62  const gnsstk::SatID& sat, const gnsstk::ObsID& obs,
63  const gnsstk::CommonTime& when, gnsstk::NavType nav,
64  double& corrOut) override
65  { return false; }
66  bool getCorr(const gnsstk::Position& rxPos, const gnsstk::Xvt& svPos,
67  const gnsstk::SatID& sat, const gnsstk::ObsID& obs,
68  const gnsstk::CommonTime& when, gnsstk::NavType nav,
69  double& corrOut) override
70  { return false; }
71 };
72 
73 
75 {
76 public:
77  unsigned constructorTest();
78 };
79 
80 
83 {
84  TUDEF("GroupPathCorrector", "GroupPathCorrector");
85  TestClass uut;
87  uut.corrType);
88  TURETURN();
89 }
90 
91 
92 int main()
93 {
94  unsigned errorTotal = 0;
95  GroupPathCorrector_T testClass;
96 
97  errorTotal += testClass.constructorTest();
98 
99  std::cout << "Total Failures for " << __FILE__ << ": " << errorTotal
100  << std::endl;
101 
102  return errorTotal;
103 }
gnsstk::CorrectorType::Unknown
@ Unknown
Corrector type is not known or is uninitialized.
gnsstk::CorrectorType
CorrectorType
Identify different sources of pseudorange bias.
Definition: CorrectorType.hpp:52
TUASSERTE
#define TUASSERTE(TYPE, EXP, GOT)
Definition: TestUtil.hpp:81
gnsstk::SatID
Definition: SatID.hpp:89
gnsstk::StringUtils::asString
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
Definition: IonexStoreStrategy.cpp:46
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
GroupPathCorrector_T::constructorTest
unsigned constructorTest()
Definition: GroupPathCorrector_T.cpp:82
TestUtil.hpp
NavLibrary.hpp
TURETURN
#define TURETURN()
Definition: TestUtil.hpp:232
MultiFormatNavDataFactory.hpp
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::CommonTime
Definition: CommonTime.hpp:84
TestClass::getCorr
bool getCorr(const gnsstk::Position &rxPos, const gnsstk::Position &svPos, const gnsstk::SatID &sat, const gnsstk::ObsID &obs, const gnsstk::CommonTime &when, gnsstk::NavType nav, double &corrOut) override
Definition: GroupPathCorrector_T.cpp:61
TestClass::TestClass
TestClass()
Definition: GroupPathCorrector_T.cpp:59
GroupPathCorrector.hpp
gnsstk::Xvt
Definition: Xvt.hpp:60
CivilTime.hpp
TUDEF
#define TUDEF(CLASS, METHOD)
Definition: TestUtil.hpp:56
GroupPathCorrector_T
Definition: GroupPathCorrector_T.cpp:74
TestClass
Make GroupPathCorrector instantiatable for testing.
Definition: GroupPathCorrector_T.cpp:56
gnsstk::Position
Definition: Position.hpp:136
main
int main()
Definition: GroupPathCorrector_T.cpp:92
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
TestClass::getCorr
bool getCorr(const gnsstk::Position &rxPos, const gnsstk::Xvt &svPos, const gnsstk::SatID &sat, const gnsstk::ObsID &obs, const gnsstk::CommonTime &when, gnsstk::NavType nav, double &corrOut) override
Definition: GroupPathCorrector_T.cpp:66
gnsstk::GroupPathCorrector::corrType
CorrectorType corrType
Set by child classes, indicates what type of bias is computed.
Definition: GroupPathCorrector.hpp:87
gnsstk::GroupPathCorrector
Definition: GroupPathCorrector.hpp:61


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