X1Sequence.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: X1Sequence.hpp 2943 2011-10-25 17:17:11Z yanweignss $"
00002 
00003 
00004 // X1Sequence.cpp - GPS X1 Seqeuncer
00005 
00006 #ifndef X1SEQUENCE_HPP
00007 #define X1SEQUENCE_HPP
00008 
00009 //============================================================================
00010 //
00011 //  This file is part of GPSTk, the GPS Toolkit.
00012 //
00013 //  The GPSTk is free software; you can redistribute it and/or modify
00014 //  it under the terms of the GNU Lesser General Public License as published
00015 //  by the Free Software Foundation; either version 2.1 of the License, or
00016 //  any later version.
00017 //
00018 //  The GPSTk is distributed in the hope that it will be useful,
00019 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 //  GNU Lesser General Public License for more details.
00022 //
00023 //  You should have received a copy of the GNU Lesser General Public
00024 //  License along with GPSTk; if not, write to the Free Software Foundation,
00025 //  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 //  
00027 //  Copyright 2004, The University of Texas at Austin
00028 //
00029 //============================================================================
00030 
00031 //============================================================================
00032 //
00033 //This software developed by Applied Research Laboratories at the University of
00034 //Texas at Austin, under contract to an agency or agencies within the U.S. 
00035 //Department of Defense. The U.S. Government retains all rights to use,
00036 //duplicate, distribute, disclose, or release this software. 
00037 //
00038 //Pursuant to DoD Directive 523024 
00039 //
00040 // DISTRIBUTION STATEMENT A: This software has been approved for public 
00041 //                           release, distribution is unlimited.
00042 //
00043 //=============================================================================
00044 
00045 
00046 
00047 
00048 
00049    // Project headers
00050 #include "gpstkplatform.h"
00051 #include "PCodeConst.hpp"
00052 
00053 namespace gpstk
00054 {
00079    class X1Sequence
00080    {
00081       public:
00088          X1Sequence();
00089          ~X1Sequence( ) {};
00090 
00108          static void allocateMemory( );
00109          static void deAllocateMemory( );
00110          
00111          uint32_t & operator[]( int i );
00116          const uint32_t & operator[] ( int i ) const;
00117      
00118       private:
00119          static uint32_t* X1Bits;
00120          static bool isInit; 
00121    };
00122 
00123    inline uint32_t & X1Sequence::operator[] ( int i )
00124    {
00125       return(X1Bits[i]); 
00126    }
00127 
00128    inline const uint32_t & X1Sequence::operator[] ( int i ) const
00129    {
00130       return(X1Bits[i]);
00131    }
00132 
00133 }  // end of namespace
00134 #endif // X1SEQUENCE_HPP

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