ComputePI.cpp

Go to the documentation of this file.
00001 #pragma ident "$Id: ComputePI.cpp 1308 2008-07-22 20:01:04Z architest $"
00002 
00008 //============================================================================
00009 //
00010 //  This file is part of GPSTk, the GPS Toolkit.
00011 //
00012 //  The GPSTk is free software; you can redistribute it and/or modify
00013 //  it under the terms of the GNU Lesser General Public License as published
00014 //  by the Free Software Foundation; either version 2.1 of the License, or
00015 //  any later version.
00016 //
00017 //  The GPSTk is distributed in the hope that it will be useful,
00018 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 //  GNU Lesser General Public License for more details.
00021 //
00022 //  You should have received a copy of the GNU Lesser General Public
00023 //  License along with GPSTk; if not, write to the Free Software Foundation,
00024 //  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 //
00026 //  Dagoberto Salazar - gAGE ( http://www.gage.es ). 2007, 2008
00027 //
00028 //============================================================================
00029 
00030 
00031 #include "ComputePI.hpp"
00032 
00033 
00034 namespace gpstk
00035 {
00036 
00037       // Index initially assigned to this class
00038    int ComputePI::classIndex = 2350000;
00039 
00040 
00041       // Returns an index identifying this object.
00042    int ComputePI::getIndex() const
00043    { return index; }
00044 
00045 
00046       // Returns a string identifying this object.
00047    std::string ComputePI::getClassName() const
00048    { return "ComputePI"; }
00049 
00050 
00051       // Default constructor
00052    ComputePI::ComputePI()
00053    {
00054       type1 = TypeID::P1;
00055       type2 = TypeID::P2;
00056       resultType = TypeID::PI;
00057       setIndex();
00058    }
00059 
00060 
00061 } // End of namespace gpstk

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