DCBDataReader.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_DCBDATAREADER_HPP
45 #define GNSSTK_DCBDATAREADER_HPP
46 
47 #include <string>
48 #include <map>
49 
50 #include "Exception.hpp"
51 #include "FFTextStream.hpp"
52 #include "StringUtils.hpp"
53 #include "SatID.hpp"
54 
55 
56 namespace gnsstk
57 {
58 
60 
61 
88  class DCBDataReader : public FFTextStream
89  {
90  public:
93  {};
94 
101  DCBDataReader(const char* fn)
102  : FFTextStream(fn, std::ios::in)
103  { loadData(); };
104 
105 
112  DCBDataReader(const std::string& fn)
113  : FFTextStream(fn.c_str(), std::ios::in)
114  { loadData(); };
115 
116 #pragma clang diagnostic push
117 #pragma clang diagnostic ignored "-Woverloaded-virtual"
118  virtual void open(const char* fn);
120 
121 
124  virtual void open(const std::string& fn);
125 #pragma clang diagnostic pop
126 
130  double getDCB( const SatID& sat);
131 
136  double getDCB(const int& prn,
137  const SatelliteSystem& system = SatelliteSystem::GPS);
138 
139 
144  double getDCB(const std::string& station,
145  const SatelliteSystem& system = SatelliteSystem::GPS);
146 
147 
149  virtual ~DCBDataReader() {};
150 
151 
152  private:
153 
154  // Map holding satellite DCB data
155  typedef std::map< SatID, double > SatDCBData;
156 
157  // Map holding receiver DCB data
158  typedef std::map< std::string, double > ReceiverDCBData;
159 
162  {
164 
166 
168  };
169 
172 
173 
178  virtual void loadData();
179 
180 
181  }; // End of class 'DCBDataReader'
182 
184 
185 } // End of namespace gnsstk
186 
187 #endif // GNSSTK_DCBDATAREADER_HPP
gnsstk::DCBDataReader::loadData
virtual void loadData()
Definition: DCBDataReader.cpp:53
gnsstk::DCBDataReader::DCBDataReader
DCBDataReader(const std::string &fn)
Definition: DCBDataReader.hpp:112
StringUtils.hpp
gnsstk::SatelliteSystem
SatelliteSystem
Supported satellite systems.
Definition: SatelliteSystem.hpp:55
gnsstk::SatID
Definition: SatID.hpp:89
SatID.hpp
gnsstk::DCBDataReader::DailyDCBData::gpsDCB
ReceiverDCBData gpsDCB
Definition: DCBDataReader.hpp:165
gnsstk::DCBDataReader
Definition: DCBDataReader.hpp:88
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::DCBDataReader::DailyDCBData::glonassDCB
ReceiverDCBData glonassDCB
Definition: DCBDataReader.hpp:167
gnsstk::DCBDataReader::~DCBDataReader
virtual ~DCBDataReader()
Destructor.
Definition: DCBDataReader.hpp:149
gnsstk::SatelliteSystem::GPS
@ GPS
gnsstk::DCBDataReader::DCBDataReader
DCBDataReader()
Default constructor.
Definition: DCBDataReader.hpp:92
gnsstk::DCBDataReader::getDCB
double getDCB(const SatID &sat)
Definition: DCBDataReader.cpp:186
gnsstk::DCBDataReader::open
virtual void open(const char *fn)
Method to open AND load DCB data file.
Definition: DCBDataReader.cpp:154
FFTextStream.hpp
gnsstk::DCBDataReader::DailyDCBData
A structure used to store daily DCB data.
Definition: DCBDataReader.hpp:161
gnsstk::DCBDataReader::DailyDCBData::satDCB
SatDCBData satDCB
Definition: DCBDataReader.hpp:163
Exception.hpp
std
Definition: Angle.hpp:142
gnsstk::DCBDataReader::DCBDataReader
DCBDataReader(const char *fn)
Definition: DCBDataReader.hpp:101
example5.fn
string fn
Definition: example5.py:10
gnsstk::DCBDataReader::allDCB
DailyDCBData allDCB
Object holding all of the DCB data.
Definition: DCBDataReader.hpp:171
gnsstk::DCBDataReader::SatDCBData
std::map< SatID, double > SatDCBData
Definition: DCBDataReader.hpp:149
gnsstk::FFTextStream
Definition: FFTextStream.hpp:63
gnsstk::DCBDataReader::ReceiverDCBData
std::map< std::string, double > ReceiverDCBData
Definition: DCBDataReader.hpp:158


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