NavFilterKey.cpp
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 
39 #include "NavFilterKey.hpp"
40 #include "TimeString.hpp"
41 
42 namespace gnsstk
43 {
46  : stationID(""),
47  rxID(""),
48  carrier(CarrierBand::Unknown),
49  code(TrackingCode::Unknown)
50  {
51  }
52 
53  void NavFilterKey::dump(std::ostream& s) const
54  {
55  // Use civil time format to accommodate multi-GNSS
56  s << gnsstk::printTime(timeStamp,"%02m/%02d/%4Y %02H:%02M:%04.1f ");
57  s << std::setw(3) << prn << " " << stationID;
58  if (rxID.length())
59  {
60  s << "/" << rxID;
61  }
62  s << " ";
64  }
65 
66  std::ostream& operator<<(std::ostream& s, const NavFilterKey& nfk)
67  {
68  nfk.dump(s);
69  return s;
70  }
71 
72 /* don't use this...
73  bool NavFilterKey ::
74  operator<(const NavFilterKey& right) const
75  {
76  if (stationID < right.stationID) return true;
77  if (stationID > right.stationID) return false;
78  if (rxID < right.rxID) return true;
79  if (rxID > right.rxID) return false;
80  if (carrier < right.carrier) return true;
81  if (carrier > right.carrier) return false;
82  if (code < right.code) return true;
83  //if (code > right.code)
84  return false;
85  }
86 */
87 }
gnsstk::NavFilterKey::carrier
CarrierBand carrier
carrier band of navigation message
Definition: NavFilterKey.hpp:79
gnsstk::CarrierBand
CarrierBand
Definition: CarrierBand.hpp:54
gnsstk::ObsID::tcDesc
static GNSSTK_EXPORT std::map< TrackingCode, std::string > tcDesc
These strings are for forming a somewhat verbose description.
Definition: ObsID.hpp:216
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::IonexStoreStrategy::Unknown
@ Unknown
Unknown or uninitialized stategy value.
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::NavFilterKey::prn
uint32_t prn
identifier of broadcasting satellite
Definition: NavFilterKey.hpp:78
gnsstk::NavFilterKey::stationID
std::string stationID
site/station identifier for data source
Definition: NavFilterKey.hpp:76
gnsstk::printTime
std::string printTime(const CommonTime &t, const std::string &fmt)
Definition: TimeString.cpp:64
gnsstk::TrackingCode
TrackingCode
Definition: TrackingCode.hpp:64
gnsstk::NavFilterKey::code
gnsstk::TrackingCode code
ranging code of navigation message
Definition: NavFilterKey.hpp:80
NavFilterKey.hpp
gnsstk::NavFilterKey::NavFilterKey
NavFilterKey()
Initialize key members to empty defaults.
Definition: NavFilterKey.cpp:45
gnsstk::NavFilterKey::dump
virtual void dump(std::ostream &s) const
Definition: NavFilterKey.cpp:53
gnsstk::ObsID::cbDesc
static GNSSTK_EXPORT std::map< CarrierBand, std::string > cbDesc
Definition: ObsID.hpp:217
gnsstk::NavFilterKey::rxID
std::string rxID
receiver identifier for data source
Definition: NavFilterKey.hpp:77
TimeString.hpp
gnsstk::NavFilterKey
Definition: NavFilterKey.hpp:66
gnsstk::NavFilterKey::timeStamp
gnsstk::CommonTime timeStamp
Definition: NavFilterKey.hpp:75


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