00001 #pragma ident "$Id: ComputePI.hpp 1308 2008-07-22 20:01:04Z architest $"
00002
00008 #ifndef COMPUTEPI_HPP
00009 #define COMPUTEPI_HPP
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #include "ComputeCombination.hpp"
00036
00037
00038 namespace gpstk
00039 {
00040
00043
00044
00081 class ComputePI : public ComputeCombination
00082 {
00083 public:
00084
00085
00087 ComputePI();
00088
00089
00095 virtual satTypeValueMap& Process(satTypeValueMap& gData)
00096 throw(ProcessingException)
00097 { ComputeCombination::Process(gData); return gData; }
00098
00099
00102 virtual ComputePI& useC1(void)
00103 { type1 = TypeID::C1; return (*this); };
00104
00105
00107 virtual int getIndex(void) const;
00108
00109
00111 virtual std::string getClassName(void) const;
00112
00113
00115 virtual ~ComputePI() {};
00116
00117
00118 protected:
00119
00120
00122 virtual double getCombination( const double& obs1,
00123 const double& obs2 )
00124 { return ( obs2 - obs1 ); };
00125
00126
00127 private:
00128
00129
00131 static int classIndex;
00132
00134 int index;
00135
00137 void setIndex(void)
00138 { index = classIndex++; };
00139
00140
00141 };
00142
00144
00145 }
00146 #endif // COMPUTEPI_HPP