RinexObsStream.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: RinexObsStream.hpp 1349 2008-08-06 19:33:13Z architest $"
00002 
00008 #ifndef GPSTK_RINEXOBSSTREAM_HPP
00009 #define GPSTK_RINEXOBSSTREAM_HPP
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 //  Copyright 2004, The University of Texas at Austin
00030 //
00031 //============================================================================
00032 
00033 //============================================================================
00034 //
00035 //This software developed by Applied Research Laboratories at the University of
00036 //Texas at Austin, under contract to an agency or agencies within the U.S.
00037 //Department of Defense. The U.S. Government retains all rights to use,
00038 //duplicate, distribute, disclose, or release this software.
00039 //
00040 //Pursuant to DoD Directive 523024
00041 //
00042 // DISTRIBUTION STATEMENT A: This software has been approved for public
00043 //                           release, distribution is unlimited.
00044 //
00045 //=============================================================================
00046 
00047 
00048 
00049 #include <vector>
00050 #include <list>
00051 #include <map>
00052 #include <string>
00053 
00054 #include "FFTextStream.hpp"
00055 #include "RinexObsHeader.hpp"
00056 
00057 namespace gpstk
00058 {
00059 
00062 
00069    class RinexObsStream : public FFTextStream
00070    {
00071    public:
00072 
00073 
00075       RinexObsStream()
00076          : headerRead(false) {};
00077 
00078 
00084       RinexObsStream( const char* fn,
00085                       std::ios::openmode mode=std::ios::in )
00086          : FFTextStream(fn, mode), headerRead(false) {};
00087 
00088 
00094       RinexObsStream( const std::string fn,
00095                       std::ios::openmode mode=std::ios::in )
00096          : FFTextStream(fn.c_str(), mode), headerRead(false) {};
00097 
00098 
00100       virtual ~RinexObsStream() {};
00101 
00102 
00108       virtual void open( const char* fn,
00109                          std::ios::openmode mode )
00110       {
00111          FFTextStream::open(fn, mode);
00112          headerRead = false;
00113          header = RinexObsHeader();
00114       };
00115 
00116 
00122       virtual void open( const std::string& fn,
00123                          std::ios::openmode mode )
00124       { open(fn.c_str(), mode); };
00125 
00126 
00128       bool headerRead;
00129 
00130 
00132       RinexObsHeader header;
00133 
00134 
00135    }; // End of class 'RinexObsStream'
00136 
00138 
00139 }  // End of namespace gpstk
00140 #endif   // GPSTK_RINEXOBSSTREAM_HPP

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