ComputePC.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: ComputePC.hpp 1308 2008-07-22 20:01:04Z architest $"
00002 
00008 #ifndef COMPUTEPC_HPP
00009 #define COMPUTEPC_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 ). 2007, 2008
00030 //
00031 //============================================================================
00032 
00033 
00034 
00035 #include "ComputeCombination.hpp"
00036 
00037 
00038 namespace gpstk
00039 {
00040 
00043 
00044 
00086    class ComputePC : public ComputeCombination
00087    {
00088    public:
00089 
00091       ComputePC();
00092 
00093 
00099       virtual satTypeValueMap& Process(satTypeValueMap& gData)
00100          throw(ProcessingException)
00101       { ComputeCombination::Process(gData); return gData; };
00102 
00103 
00106       virtual ComputePC& useC1(void)
00107       { type1 = TypeID::C1; return (*this); };
00108 
00109 
00111       virtual int getIndex(void) const;
00112 
00113 
00115       virtual std::string getClassName(void) const;
00116 
00117 
00119       virtual ~ComputePC() {};
00120 
00121 
00122    protected:
00123 
00124 
00126       virtual double getCombination( const double& obs1,
00127                                      const double& obs2 )
00128       { return ( (GAMMA_GPS*obs1 - obs2)/(DEN) ); };
00129 
00130 
00131    private:
00132 
00133 
00134       const double DEN;     // DEN = GAMMA_GPS - 1
00135 
00136 
00138       static int classIndex;
00139 
00141       int index;
00142 
00144       void setIndex(void)
00145       { index = classIndex++; };
00146 
00147 
00148    }; // End of class 'ComputePC'
00149 
00151 
00152 }
00153 #endif   // COMPUTEPC_HPP

Generated on Tue May 22 03:30:56 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1