TimeOffsetData.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 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #ifndef GNSSTK_TIMEOFFSETDATA_HPP
40 #define GNSSTK_TIMEOFFSETDATA_HPP
41 
42 #include "NavData.hpp"
43 #include "TimeSystem.hpp"
44 #include "CommonTime.hpp"
45 
46 namespace gnsstk
47 {
49 
50 
53  typedef std::pair<TimeSystem,TimeSystem> TimeCvtKey;
55  typedef std::set<TimeCvtKey> TimeCvtSet;
56 
60  class TimeOffsetData : public NavData
61  {
62  public:
66 
68  virtual ~TimeOffsetData()
69  {}
70 
73  CommonTime getNearTime() const override
74  { return timeStamp; }
75 
88  virtual bool getOffset(TimeSystem fromSys, TimeSystem toSys,
89  const CommonTime& when, double& offset) const = 0;
90 
98  virtual TimeCvtSet getConversions() const = 0;
99 
101  bool isSameData(const NavDataPtr& right) const override
102  {
103  Exception exc("Unimplemented function");
104  GNSSTK_THROW(exc);
105  }
107  std::list<std::string> compare(const NavDataPtr& right)
108  const override
109  {
110  Exception exc("Unimplemented function");
111  GNSSTK_THROW(exc);
112  }
113  };
114 
116 
117 }
118 
119 #endif // GNSSTK_TIMEOFFSETDATA_HPP
gnsstk::NavDataPtr
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
Definition: NavData.hpp:62
TimeSystem.hpp
gnsstk::TimeCvtKey
std::pair< TimeSystem, TimeSystem > TimeCvtKey
Definition: TimeOffsetData.hpp:53
gnsstk::NavMessageID::messageType
NavMessageType messageType
Definition: NavMessageID.hpp:97
gnsstk::NavData
Definition: NavData.hpp:86
gnsstk::NavData::signal
NavMessageID signal
Source signal identification for this navigation message data.
Definition: NavData.hpp:175
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::TimeCvtSet
std::set< TimeCvtKey > TimeCvtSet
Define a unique set of time system conversions.
Definition: TimeOffsetData.hpp:55
gnsstk::NavData::timeStamp
CommonTime timeStamp
Definition: NavData.hpp:173
gnsstk::Exception
Definition: Exception.hpp:151
gnsstk::TimeOffsetData::getOffset
virtual bool getOffset(TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, double &offset) const =0
gnsstk::TimeOffsetData::compare
std::list< std::string > compare(const NavDataPtr &right) const override
Definition: TimeOffsetData.hpp:107
gnsstk::TimeOffsetData::getNearTime
CommonTime getNearTime() const override
Definition: TimeOffsetData.hpp:73
gnsstk::TimeOffsetData::TimeOffsetData
TimeOffsetData()
Set the messageType.
Definition: TimeOffsetData.hpp:64
NavData.hpp
gnsstk::TimeOffsetData
Definition: TimeOffsetData.hpp:60
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::TimeSystem
TimeSystem
Definition of various time systems.
Definition: TimeSystem.hpp:51
gnsstk::NavMessageType::TimeOffset
@ TimeOffset
Message containing information about time system offsets.
gnsstk::TimeOffsetData::getConversions
virtual TimeCvtSet getConversions() const =0
gnsstk::TimeOffsetData::isSameData
bool isSameData(const NavDataPtr &right) const override
Definition: TimeOffsetData.hpp:101
CommonTime.hpp
GNSSTK_THROW
#define GNSSTK_THROW(exc)
Definition: Exception.hpp:366
gnsstk::TimeOffsetData::~TimeOffsetData
virtual ~TimeOffsetData()
Obligatory virtual destructor.
Definition: TimeOffsetData.hpp:68


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