RinexMetData.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 GNSSTK_RINEXMETDATA_HPP
45 #define GNSSTK_RINEXMETDATA_HPP
46 
47 #include <map>
48 
49 #include "CommonTime.hpp"
50 #include "FFStream.hpp"
51 #include "RinexMetBase.hpp"
52 #include "RinexMetHeader.hpp"
53 #include "gnsstk_export.h"
54 
55 namespace gnsstk
56 {
58 
59 
71  class RinexMetData : public RinexMetBase
72  {
73 
74  public:
75 
78  {}
79 
81  virtual bool isData(void) const { return true; }
82 
87  virtual std::string stableText() const;
88 
93  virtual void dump(std::ostream& s) const;
94 
96  bool operator<(const RinexMetData& right) const
97  { return (time < right.time); }
98 
101  typedef std::map<RinexMetHeader::RinexMetType, double> RinexMetMap;
102 
105 
107  GNSSTK_EXPORT static const int maxObsPerLine;
110  GNSSTK_EXPORT static const int maxObsPerContinuationLine;
111 
112  protected:
113 
119  void reallyPutRecord(FFStream& s) const;
120 
132  virtual void reallyGetRecord(FFStream& s);
133 
134  private:
135 
140  void processFirstLine(const std::string& line,
141  const RinexMetHeader& hdr,
142  double version);
143 
147  void processContinuationLine(const std::string& line,
148  const RinexMetHeader& hdr);
149 
154  CommonTime parseTime(const std::string& line, double version) const;
155 
162  std::string writeTime(const CommonTime& dtd, double version = 2.11) const;
163 
164  }; // class RinexMetData
165 
167 
168 } // namespace
169 
170 
171 #endif
gnsstk::RinexMetData
Definition: RinexMetData.hpp:71
gnsstk::RinexMetBase
Definition: RinexMetBase.hpp:57
gnsstk::RinexMetData::stableText
virtual std::string stableText() const
Definition: RinexMetData.cpp:297
gnsstk::FFStream
Definition: FFStream.hpp:119
gnsstk::BEGINNING_OF_TIME
const Epoch BEGINNING_OF_TIME(CommonTime::BEGINNING_OF_TIME)
Earliest representable Epoch.
gnsstk::RinexMetData::parseTime
CommonTime parseTime(const std::string &line, double version) const
Definition: RinexMetData.cpp:198
gnsstk::RinexMetData::maxObsPerLine
static const GNSSTK_EXPORT int maxObsPerLine
The maximum number of obs per line before you need a new line.
Definition: RinexMetData.hpp:107
gnsstk::RinexMetData::reallyGetRecord
virtual void reallyGetRecord(FFStream &s)
Definition: RinexMetData.cpp:111
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::RinexMetData::maxObsPerContinuationLine
static const GNSSTK_EXPORT int maxObsPerContinuationLine
Definition: RinexMetData.hpp:110
gnsstk::RinexMetData::RinexMetMap
std::map< RinexMetHeader::RinexMetType, double > RinexMetMap
Definition: RinexMetData.hpp:101
gnsstk::RinexMetData::time
CommonTime time
The time this data was recorded, in GPS time system.
Definition: RinexMetData.hpp:103
gnsstk::RinexMetData::RinexMetData
RinexMetData()
Definition: RinexMetData.hpp:76
RinexMetBase.hpp
gnsstk::CommonTime
Definition: CommonTime.hpp:84
version
string version(string("2.4 9/23/15 rev"))
RinexMetHeader.hpp
gnsstk::RinexMetData::operator<
bool operator<(const RinexMetData &right) const
less-than operator, for use with STL sort()
Definition: RinexMetData.hpp:96
gnsstk::RinexMetData::processFirstLine
void processFirstLine(const std::string &line, const RinexMetHeader &hdr, double version)
Definition: RinexMetData.cpp:150
CommonTime.hpp
gnsstk::RinexMetData::isData
virtual bool isData(void) const
RinexMetData is "data" so this function always returns true.
Definition: RinexMetData.hpp:81
FFStream.hpp
gnsstk::RinexMetData::data
RinexMetMap data
The data itself in map form.
Definition: RinexMetData.hpp:104
gnsstk::RinexMetData::processContinuationLine
void processContinuationLine(const std::string &line, const RinexMetHeader &hdr)
Definition: RinexMetData.cpp:176
gnsstk::RinexMetData::dump
virtual void dump(std::ostream &s) const
Definition: RinexMetData.cpp:285
gnsstk::RinexMetHeader
Definition: RinexMetHeader.hpp:70
gnsstk::RinexMetData::writeTime
std::string writeTime(const CommonTime &dtd, double version=2.11) const
Definition: RinexMetData.cpp:255
gnsstk::RinexMetData::reallyPutRecord
void reallyPutRecord(FFStream &s) const
Definition: RinexMetData.cpp:58


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