AntennaStore.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 
46 #ifndef GNSSTK_ANTENNA_STORE_INCLUDE
47 #define GNSSTK_ANTENNA_STORE_INCLUDE
48 
49 #include <iostream>
50 #include <map>
51 #include <string>
52 #include <vector>
53 
54 #include "AntexData.hpp"
55 #include "AntexHeader.hpp"
56 #include "AntexStream.hpp"
57 #include "CommonTime.hpp"
58 #include "SatID.hpp"
59 #include "Triple.hpp"
60 
61 namespace gnsstk
62 {
95  {
96  public:
99 
102 
108  void addAntenna(const std::string& name, AntexData& antdata);
109 
115  bool getAntenna(const std::string& name, AntexData& antdata);
116 
136  bool getSatelliteAntenna(const char sys, const int n, std::string& name,
137  AntexData& data, bool inputPRN = true) const;
138 
140  void getNames(std::vector<std::string>& names);
141 
143  void getReceiverNames(std::vector<std::string>& names);
144 
146  unsigned int size() const { return antennaMap.size(); }
147 
149  void clear() { antennaMap.clear(); }
150 
156 
162 
168 
175  void includeReceivers(std::vector<std::string>& names);
176 
189  int addANTEXfile(const std::string& filename,
191 
209  Triple ComToPcVector(const char sys, const int n, const CommonTime& ct,
210  const Triple& satVector, bool inputPRN = true) const;
211 
215  Triple ComToPcVector(const SatID& sidr, const CommonTime& ct,
216  const Triple& satVector) const;
217 
219  void dump(std::ostream& s = std::cout, short detail = 0);
220 
221  private:
223  std::vector<std::string> namesToInclude;
224 
230 
232  std::map<std::string, AntexData> antennaMap;
233 
234  }; // end class AntennaStore
235 
236 } // namespace gnsstk
237 #endif // GNSSTK_ANTENNA_STORE_INCLUDE
gnsstk::AntennaStore::includeGPSSatellites
void includeGPSSatellites()
Definition: AntennaStore.hpp:161
gnsstk::AntennaStore::excludeAllSatellites
void excludeAllSatellites()
Definition: AntennaStore.hpp:167
gnsstk::AntennaStore::antennaMap
std::map< std::string, AntexData > antennaMap
map from name of antenna to AntexData object
Definition: AntennaStore.hpp:232
gnsstk::AntennaStore::addANTEXfile
int addANTEXfile(const std::string &filename, CommonTime time=CommonTime::BEGINNING_OF_TIME)
Definition: AntennaStore.cpp:214
gnsstk::AntennaStore::getNames
void getNames(std::vector< std::string > &names)
Get a vector of all antenna names in the store.
Definition: AntennaStore.cpp:142
gnsstk::AntennaStore::namesToInclude
std::vector< std::string > namesToInclude
List of receiver names to include in store.
Definition: AntennaStore.hpp:223
gnsstk::SatID
Definition: SatID.hpp:89
SatID.hpp
AntexHeader.hpp
gnsstk::CommonTime::BEGINNING_OF_TIME
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
Definition: CommonTime.hpp:102
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk::AntennaStore::clear
void clear()
clear the store of all information
Definition: AntennaStore.hpp:149
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::AntennaStore::includeSats
int includeSats
Definition: AntennaStore.hpp:229
AntexStream.hpp
gnsstk::AntennaStore::includeReceivers
void includeReceivers(std::vector< std::string > &names)
Definition: AntennaStore.cpp:169
gnsstk::AntennaStore
Definition: AntennaStore.hpp:94
gnsstk::AntexData
Definition: AntexData.hpp:120
example4.satVector
satVector
Definition: example4.py:109
example4.time
time
Definition: example4.py:103
gnsstk::AntennaStore::getAntenna
bool getAntenna(const std::string &name, AntexData &antdata)
Definition: AntennaStore.cpp:82
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::AntennaStore::includeAllSatellites
void includeAllSatellites()
Definition: AntennaStore.hpp:155
gnsstk::AntennaStore::ComToPcVector
Triple ComToPcVector(const char sys, const int n, const CommonTime &ct, const Triple &satVector, bool inputPRN=true) const
Definition: AntennaStore.cpp:342
gnsstk::AntennaStore::getSatelliteAntenna
bool getSatelliteAntenna(const char sys, const int n, std::string &name, AntexData &data, bool inputPRN=true) const
Definition: AntennaStore.cpp:110
AntexData.hpp
gnsstk::AntennaStore::getReceiverNames
void getReceiverNames(std::vector< std::string > &names)
Get a vector of all receiver antenna names in the store.
Definition: AntennaStore.cpp:151
example3.data
data
Definition: example3.py:22
CommonTime.hpp
gnsstk::AntennaStore::dump
void dump(std::ostream &s=std::cout, short detail=0)
dump the store
Definition: AntennaStore.cpp:520
Triple.hpp
gnsstk::AntennaStore::addAntenna
void addAntenna(const std::string &name, AntexData &antdata)
Definition: AntennaStore.cpp:59
gnsstk::AntennaStore::AntennaStore
AntennaStore()
Empty constructor.
Definition: AntennaStore.hpp:98
gnsstk::AntennaStore::~AntennaStore
~AntennaStore()
Destructor.
Definition: AntennaStore.hpp:101
gnsstk::AntennaStore::size
unsigned int size() const
get the number of antennas stored
Definition: AntennaStore.hpp:146


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