Rinex3ClockData.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 RINEX3CLOCKDATA_HPP
45 #define RINEX3CLOCKDATA_HPP
46 
47 #include "RinexSatID.hpp"
48 #include "Rinex3ClockBase.hpp"
49 #include "CommonTime.hpp"
50 #include <iomanip>
51 
52 namespace gnsstk
53 {
55 
56 
87  {
88  public:
91 
93  virtual ~Rinex3ClockData() {}
94 
95  // The next four lines is our common interface
97  virtual bool isData() const {return true;}
98 
100  virtual void dump(std::ostream& s=std::cout) const noexcept;
101 
102  std::string datatype;
104  std::string site;
112 
113  protected:
114 
115  void clear() noexcept
116  {
117  datatype = std::string();
120  bias = sig_bias = drift = sig_drift = accel = sig_accel = 0.0;
121  }
122 
129  virtual void reallyPutRecord(FFStream& s) const;
130 
141  virtual void reallyGetRecord(FFStream& s);
142  };
143 
145 
146 } // namespace
147 
148 #endif // RINEX3CLOCKDATA_HPP
gnsstk::FFStream
Definition: FFStream.hpp:119
gnsstk::Rinex3ClockData::reallyGetRecord
virtual void reallyGetRecord(FFStream &s)
Definition: Rinex3ClockData.cpp:123
gnsstk::CommonTime::BEGINNING_OF_TIME
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
Definition: CommonTime.hpp:102
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Rinex3ClockData::sig_bias
R3CDouble sig_bias
Clock bias sigma in seconds.
Definition: Rinex3ClockData.hpp:107
gnsstk::Rinex3ClockData::bias
R3CDouble bias
Clock bias in seconds.
Definition: Rinex3ClockData.hpp:106
gnsstk::SatelliteSystem::GPS
@ GPS
gnsstk::Rinex3ClockData::sig_accel
R3CDouble sig_accel
Clock acceleration sigma in 1/sec.
Definition: Rinex3ClockData.hpp:111
gnsstk::Rinex3ClockData::time
CommonTime time
Time of epoch for this record.
Definition: Rinex3ClockData.hpp:105
gnsstk::Rinex3ClockData::dump
virtual void dump(std::ostream &s=std::cout) const noexcept
Debug output function.
Definition: Rinex3ClockData.cpp:190
gnsstk::Rinex3ClockData::sig_drift
R3CDouble sig_drift
Clock drift sigma in sec/sec.
Definition: Rinex3ClockData.hpp:109
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::Rinex3ClockData::isData
virtual bool isData() const
Rinex3ClockData is "data" so this function always returns true.
Definition: Rinex3ClockData.hpp:97
gnsstk::Rinex3ClockData::drift
R3CDouble drift
Clock drift in sec/sec.
Definition: Rinex3ClockData.hpp:108
Rinex3ClockBase.hpp
gnsstk::Rinex3ClockData::site
std::string site
Site label (4-char) (if AR)
Definition: Rinex3ClockData.hpp:104
gnsstk::Rinex3ClockData::Rinex3ClockData
Rinex3ClockData()
Constructor.
Definition: Rinex3ClockData.cpp:55
gnsstk::Rinex3ClockData::clear
void clear() noexcept
Definition: Rinex3ClockData.hpp:115
gnsstk::Rinex3ClockData::reallyPutRecord
virtual void reallyPutRecord(FFStream &s) const
Definition: Rinex3ClockData.cpp:62
gnsstk::Rinex3ClockData
Definition: Rinex3ClockData.hpp:86
gnsstk::RinexSatID
Definition: RinexSatID.hpp:63
CommonTime.hpp
gnsstk::Rinex3ClockBase
This class is here to make readable inheritance diagrams.
Definition: Rinex3ClockBase.hpp:56
RinexSatID.hpp
gnsstk::Rinex3ClockData::sat
RinexSatID sat
Satellite ID (if AS)
Definition: Rinex3ClockData.hpp:103
gnsstk::Rinex3ClockData::accel
R3CDouble accel
Clock acceleration in 1/sec.
Definition: Rinex3ClockData.hpp:110
gnsstk::Rinex3ClockData::datatype
std::string datatype
Data type : AR, AS, etc.
Definition: Rinex3ClockData.hpp:102
gnsstk::Rinex3ClockData::~Rinex3ClockData
virtual ~Rinex3ClockData()
Destructor.
Definition: Rinex3ClockData.hpp:93
gnsstk::Rinex3ClockBase::R3CDouble
Definition: Rinex3ClockBase.hpp:61


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