00001 #pragma ident "$Id: SP3Data.hpp 1073 2008-01-24 20:16:04Z pben $" 00002 00008 #ifndef GPSTK_SP3DATA_HPP 00009 #define GPSTK_SP3DATA_HPP 00010 00011 //============================================================================ 00012 // 00013 // This file is part of GPSTk, the GPS Toolkit. 00014 // 00015 // The GPSTk is free software; you can redistribute it and/or modify 00016 // it under the terms of the GNU Lesser General Public License as published 00017 // by the Free Software Foundation; either version 2.1 of the License, or 00018 // any later version. 00019 // 00020 // The GPSTk is distributed in the hope that it will be useful, 00021 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 // GNU Lesser General Public License for more details. 00024 // 00025 // You should have received a copy of the GNU Lesser General Public 00026 // License along with GPSTk; if not, write to the Free Software Foundation, 00027 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 // 00029 // Copyright 2004, The University of Texas at Austin 00030 // 00031 //============================================================================ 00032 00033 //============================================================================ 00034 // 00035 //This software developed by Applied Research Laboratories at the University of 00036 //Texas at Austin, under contract to an agency or agencies within the U.S. 00037 //Department of Defense. The U.S. Government retains all rights to use, 00038 //duplicate, distribute, disclose, or release this software. 00039 // 00040 //Pursuant to DoD Directive 523024 00041 // 00042 // DISTRIBUTION STATEMENT A: This software has been approved for public 00043 // release, distribution is unlimited. 00044 // 00045 //============================================================================= 00046 00047 #include "SatID.hpp" 00048 #include "SP3Base.hpp" 00049 00050 namespace gpstk 00051 { 00054 00077 class SP3Data : public SP3Base 00078 { 00079 public: 00081 SP3Data() : version('a'),flag('\000'), time(gpstk::DayTime::BEGINNING_OF_TIME), 00082 clockEventFlag(false),clockPredFlag(false),orbitManeuverFlag(false), 00083 orbitPredFlag(false),correlationFlag(false) 00084 {} 00085 00087 virtual ~SP3Data() {} 00088 00089 // The next four lines is our common interface 00091 virtual bool isData() const {return true;} 00092 00094 virtual void dump(std::ostream& s) const; 00095 00097 00098 char version; 00099 char flag; 00100 SatID sat; 00101 DayTime time; 00102 double x[3]; 00103 double clk; 00104 int sig[4]; 00105 00106 00107 bool clockEventFlag; 00108 bool clockPredFlag; 00109 bool orbitManeuverFlag; 00110 bool orbitPredFlag; 00111 00112 bool correlationFlag; 00113 00114 unsigned sdev[4]; 00115 00116 int correlation[6]; 00117 00118 00119 protected: 00120 00123 virtual void reallyPutRecord(FFStream& s) const 00124 throw(std::exception, FFStreamError, 00125 gpstk::StringUtils::StringException); 00126 00136 virtual void reallyGetRecord(FFStream& s) 00137 throw(std::exception, FFStreamError, 00138 gpstk::StringUtils::StringException); 00139 }; 00140 00142 00143 } // namespace 00144 00145 #endif
1.3.9.1