RinexObsData.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 
44 #ifndef RINEXOBSDATA_HPP
45 #define RINEXOBSDATA_HPP
46 
47 #include <vector>
48 #include <list>
49 #include <map>
50 
51 #include "CommonTime.hpp"
52 #include "FFStream.hpp"
53 #include "RinexObsBase.hpp"
54 #include "RinexObsHeader.hpp"
55 #include "RinexDatum.hpp"
56 
57 namespace gnsstk
58 {
60 
61 
68  class RinexObsData : public RinexObsBase
69  {
70  public:
71 
73  typedef std::map<RinexObsType, gnsstk::RinexDatum> RinexObsTypeMap;
75  typedef std::map<gnsstk::SatID, RinexObsTypeMap> RinexSatMap;
76 
78 
89  short epochFlag;
93  short numSvs;
94  double clockOffset;
97 
100 
102  virtual ~RinexObsData() {}
103 
104  // The next four lines is our common interface
106  virtual bool isData() const {return true;}
107 
113  virtual void dump(std::ostream& s) const;
114 
115  protected:
127  virtual void reallyPutRecord(FFStream& s) const;
128 
143  virtual void reallyGetRecord(FFStream& s);
144 
145  private:
149 
152  std::string writeTime(const CommonTime& dt) const;
153 
162  CommonTime parseTime(const std::string& line, const RinexObsHeader& hdr)
163  const;
164  }; // class RinexObsData
165 
167 
168 } // namespace
169 
170 #endif
gnsstk::RinexObsData::previousTime
static gnsstk::CommonTime previousTime
Definition: RinexObsData.hpp:148
gnsstk::FFStream
Definition: FFStream.hpp:119
gnsstk::BEGINNING_OF_TIME
const Epoch BEGINNING_OF_TIME(CommonTime::BEGINNING_OF_TIME)
Earliest representable Epoch.
gnsstk::RinexObsData::parseTime
CommonTime parseTime(const std::string &line, const RinexObsHeader &hdr) const
Definition: RinexObsData.cpp:358
gnsstk::RinexObsData::obs
RinexSatMap obs
the map of observations
Definition: RinexObsData.hpp:95
gnsstk::RinexObsData::RinexSatMap
std::map< gnsstk::SatID, RinexObsTypeMap > RinexSatMap
map from SatID to RinexObsTypeMap.
Definition: RinexObsData.hpp:75
gnsstk::RinexObsData::isData
virtual bool isData() const
RinexObsData is a "data", so this function always returns true.
Definition: RinexObsData.hpp:106
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::RinexObsData::~RinexObsData
virtual ~RinexObsData()
Destructor.
Definition: RinexObsData.hpp:102
RinexDatum.hpp
gnsstk::RinexObsData::numSvs
short numSvs
Definition: RinexObsData.hpp:93
gnsstk::RinexObsData::RinexObsData
RinexObsData()
Constructor.
Definition: RinexObsData.hpp:99
gnsstk::RinexObsData::epochFlag
short epochFlag
Definition: RinexObsData.hpp:89
gnsstk::RinexObsData::reallyGetRecord
virtual void reallyGetRecord(FFStream &s)
Definition: RinexObsData.cpp:182
gnsstk::RinexObsData::writeTime
std::string writeTime(const CommonTime &dt) const
Definition: RinexObsData.cpp:418
gnsstk::RinexObsData::auxHeader
RinexObsHeader auxHeader
auxiliary header records (epochFlag 2-5)
Definition: RinexObsData.hpp:96
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::RinexObsData::clockOffset
double clockOffset
optional clock offset
Definition: RinexObsData.hpp:94
RinexObsBase.hpp
gnsstk::RinexObsBase
Definition: RinexObsBase.hpp:57
RinexObsHeader.hpp
gnsstk::RinexObsData::dump
virtual void dump(std::ostream &s) const
Definition: RinexObsData.cpp:443
gnsstk::RinexObsData::RinexObsTypeMap
std::map< RinexObsType, gnsstk::RinexDatum > RinexObsTypeMap
map from RinexObsType to RinexDatum.
Definition: RinexObsData.hpp:73
CommonTime.hpp
gnsstk::RinexObsData::reallyPutRecord
virtual void reallyPutRecord(FFStream &s) const
Definition: RinexObsData.cpp:58
FFStream.hpp
gnsstk::RinexObsHeader
Definition: RinexObsHeader.hpp:107
gnsstk::RinexObsData
Definition: RinexObsData.hpp:68
gnsstk::RinexObsData::time
gnsstk::CommonTime time
the time corresponding to the observations
Definition: RinexObsData.hpp:77


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