GravitationalDelay.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: GravitationalDelay.hpp 1315 2008-07-25 18:35:21Z architest $"
00002 
00008 #ifndef GRAVITATIONALDELAY_HPP
00009 #define GRAVITATIONALDELAY_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 //  Dagoberto Salazar - gAGE ( http://www.gage.es ). 2008
00030 //
00031 //============================================================================
00032 
00033 
00034 
00035 #include <math.h>
00036 #include "Position.hpp"
00037 #include "ProcessingClass.hpp"
00038 
00039 
00040 
00041 namespace gpstk
00042 {
00043 
00046 
00047 
00105    class GravitationalDelay : public ProcessingClass
00106    {
00107       public:
00108 
00110       GravitationalDelay() : nominalPos(0.0, 0.0, 0.0)
00111       { setIndex(); };
00112 
00113 
00118       GravitationalDelay(const Position& stapos) : nominalPos(stapos)
00119       { setIndex(); };
00120 
00121 
00128       virtual satTypeValueMap& Process( const DayTime& epoch,
00129                                         satTypeValueMap& gData )
00130          throw(ProcessingException);
00131 
00132 
00138       virtual gnssSatTypeValue& Process(gnssSatTypeValue& gData)
00139          throw(ProcessingException)
00140       { Process(gData.header.epoch, gData.body); return gData; };
00141 
00142 
00148       virtual gnssRinex& Process(gnssRinex& gData)
00149          throw(ProcessingException);
00150 
00151 
00153       virtual Position getNominalPosition(void) const
00154       { return nominalPos; };
00155 
00156 
00160       virtual GravitationalDelay& setNominalPosition(const Position& stapos)
00161         { nominalPos = stapos; return (*this); };
00162 
00163 
00165       virtual int getIndex(void) const;
00166 
00167 
00169       virtual std::string getClassName(void) const;
00170 
00171 
00173       virtual ~GravitationalDelay() {};
00174 
00175 
00176    private:
00177 
00178 
00180       Position nominalPos;
00181 
00182 
00184       static int classIndex;
00185 
00187       int index;
00188 
00190       void setIndex(void)
00191       { index = classIndex++; };
00192 
00193 
00194    }; // End of class 'GravitationalDelay'
00195 
00197 
00198 }  // End of namespace gpstk
00199 #endif   // GRAVITATIONALDELAY_HPP

Generated on Thu Feb 9 03:30:57 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1