00001 #pragma ident "$Id: SVPCodeGen.hpp 3140 2012-06-18 15:03:02Z susancummins $" 00002 00003 //============================================================================ 00004 // 00005 // This file is part of GPSTk, the GPS Toolkit. 00006 // 00007 // The GPSTk is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as published 00009 // by the Free Software Foundation; either version 2.1 of the License, or 00010 // any later version. 00011 // 00012 // The GPSTk is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with GPSTk; if not, write to the Free Software Foundation, 00019 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 00020 // 00021 // Copyright 2004, The University of Texas at Austin 00022 // 00023 //============================================================================ 00024 00025 //============================================================================ 00026 // 00027 //This software developed by Applied Research Laboratories at the University of 00028 //Texas at Austin, under contract to an agency or agencies within the U.S. 00029 //Department of Defense. The U.S. Government retains all rights to use, 00030 //duplicate, distribute, disclose, or release this software. 00031 // 00032 //Pursuant to DoD Directive 523024 00033 // 00034 // DISTRIBUTION STATEMENT A: This software has been approved for public 00035 // release, distribution is unlimited. 00036 // 00037 //============================================================================= 00038 00039 00040 #ifndef SVPCODEGEN_HPP 00041 #define SVPCODEGEN_HPP 00042 00043 #include "CommonTime.hpp" 00044 #include "PCodeConst.hpp" 00045 #include "CodeBuffer.hpp" 00046 #include "X1Sequence.hpp" 00047 #include "X2Sequence.hpp" 00048 #include "GPSZcount.hpp" 00049 00050 namespace gpstk 00051 { 00096 class SVPCodeGen 00097 { 00098 public: 00106 SVPCodeGen( const int SVPRNID, const gpstk::CommonTime& dt ); 00107 ~SVPCodeGen( ) {}; 00108 00119 void getCurrentSixSeconds( CodeBuffer& pcb ); 00120 00129 void increment4ZCounts(); 00130 00134 const gpstk::CommonTime& getCurrentZCount() const {return currentZTime;} 00135 00140 void setCurrentZCount(const gpstk::GPSZcount& z); 00141 00142 private: 00143 gpstk::X1Sequence X1Seq; 00144 gpstk::X2Sequence X2Seq; 00145 gpstk::CommonTime currentZTime; 00146 int PRNID; 00147 }; 00149 } // end of namespace 00150 #endif // SVPCODEGEN_HPP
1.3.9.1