Rinex3ClockStream.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: Rinex3ClockStream.hpp 3319 2012-09-19 16:58:10Z prestonherrmann $"
00002 
00008 #ifndef GPSTK_RINEX3CLOCKSTREAM_HPP
00009 #define GPSTK_RINEX3CLOCKSTREAM_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., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
00028 //
00029 //  Octavian Andrei - FGI ( http://www.fgi.fi ). 2008
00030 //
00031 //============================================================================
00032 
00033 // system
00034 #include <vector>
00035 #include <list>
00036 #include <map>
00037 #include <string>
00038 // GPSTk
00039 #include "FFTextStream.hpp"
00040 #include "Rinex3ClockHeader.hpp"
00041 
00042 namespace gpstk
00043 {
00044 
00047 
00053    class Rinex3ClockStream : public FFTextStream
00054    {
00055    public:
00056 
00057 
00059       Rinex3ClockStream()
00060          : headerRead(false) {};
00061 
00062 
00068       Rinex3ClockStream( const char* fn,
00069                          std::ios::openmode mode=std::ios::in )
00070          : FFTextStream(fn, mode), headerRead(false) {};
00071 
00072 
00078       Rinex3ClockStream( const std::string fn,
00079                          std::ios::openmode mode=std::ios::in )
00080          : FFTextStream(fn.c_str(), mode), headerRead(false) {};
00081 
00082 
00084       virtual ~Rinex3ClockStream() {};
00085 
00086 
00092       virtual void open( const char* fn,
00093                          std::ios::openmode mode )
00094       {
00095          FFTextStream::open(fn, mode);
00096          headerRead = false;
00097          header = Rinex3ClockHeader();
00098       };
00099 
00100 
00106       virtual void open( const std::string& fn,
00107                          std::ios::openmode mode )
00108       { open(fn.c_str(), mode); };
00109 
00110 
00112       bool headerRead;
00113 
00114 
00116       Rinex3ClockHeader header;
00117 
00118 
00119    }; // End of class 'Rinex3ClockStream'
00120 
00122 
00123 }  // End of namespace gpstk
00124 
00125 #endif   // GPSTK_RINEX3CLOCKSTREAM_HPP

Generated on Thu May 23 03:31:11 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1