IonexStream.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: IonexStream.hpp 1895 2009-05-12 19:34:29Z afarris $"
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 //  Octavian Andrei - FGI ( http://www.fgi.fi ). 2008
00022 //
00023 //============================================================================
00024 
00030 #ifndef GPSTK_IONEXSTREAM_HPP
00031 #define GPSTK_IONEXSTREAM_HPP
00032 
00033 #include "FFTextStream.hpp"
00034 #include "IonexHeader.hpp"
00035 
00036 namespace gpstk
00037 {
00038 
00041 
00047    class IonexStream : public FFTextStream
00048    {
00049    public:
00050 
00052       IonexStream()
00053             : headerRead(false) {};
00054 
00055 
00061       IonexStream(const char* fn, std::ios::openmode mode=std::ios::in)
00062             : FFTextStream(fn, mode), headerRead(false) {};
00063 
00064 
00066       virtual ~IonexStream() {};
00067 
00068 
00070       virtual void open(const char* fn, std::ios::openmode mode)
00071       {
00072 
00073          FFTextStream::open(fn, mode);
00074          headerRead = false;
00075          header = IonexHeader();
00076 
00077       };
00078 
00079 
00081       bool headerRead;
00082 
00083 
00085       IonexHeader header;
00086 
00087 
00088    }; // End of class 'IonexStream'
00089 
00090 
00092 
00093 
00094 }  // End of namespace gpstk
00095 #endif   // GPSTK_IONEXSTREAM_HPP

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