CheckPRData.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: CheckPRData.hpp 1889 2009-05-11 15:47:23Z afarris $"
00002 
00008 #ifndef CheckPRData_GPSTK
00009 #define CheckPRData_GPSTK
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. 2006
00030 //
00031 //============================================================================
00032 
00033 
00034 
00035 namespace gpstk
00036 {
00037 
00040 
00041 
00043     class CheckPRData
00044     {
00045     public:
00046 
00048         CheckPRData() : minPRange(15000000.0), maxPRange(30000000.0) {};
00049 
00050 
00052         CheckPRData(const double& min, const double& max) : minPRange(min), maxPRange(max) {};
00053 
00054 
00061         virtual bool check(const double& prange) const
00062         {
00063             return ( prange>=minPRange && prange<=maxPRange );
00064         };  // end CheckPRData::check()
00065 
00066 
00068         virtual void setMinPRange(const double& minPR) { minPRange = minPR; };
00069 
00071         virtual double getMinPRange(void) const { return minPRange; };
00072 
00074         virtual void setMaxPRange(const double& maxPR) { maxPRange = maxPR; };
00075 
00077         virtual double getMaxPRange(void) const { return maxPRange; };
00078 
00079 
00081         virtual ~CheckPRData() {};
00082 
00083 
00084     protected:
00085 
00087         double minPRange;
00088 
00090         double maxPRange;
00091 
00092 
00093 
00094    }; // end class CheckPRData
00095    
00096 
00098    
00099 }
00100 
00101 #endif

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