YumaStream.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: YumaStream.hpp 383 2007-01-30 16:23:29Z ehagen $"
00002 
00003 
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 #ifndef YUMASTREAM_HPP
00047 #define YUMASTREAM_HPP
00048 
00049 
00050 #include "FFTextStream.hpp"
00051 #include "YumaHeader.hpp"
00052 
00053 namespace gpstk
00054 {
00057 
00067    class YumaStream : public FFTextStream
00068    {
00069    public:
00071       YumaStream() {}
00072       
00078       YumaStream(const char* fn,
00079                 std::ios::openmode mode=std::ios::in)
00080             : FFTextStream(fn, mode), headerRead(false) {};
00081 
00083       virtual ~YumaStream() {}
00084 
00086       virtual void open(const char* fn, std::ios::openmode mode)
00087          {
00088             FFTextStream::open(fn, mode);
00089             headerRead = false;
00090             header = YumaHeader();
00091          }
00093       YumaHeader header;
00094       
00096       bool headerRead;
00097 
00098    }; // class YumaStream
00099    
00101    
00102 } // namespace gpstk
00103 
00104 #endif

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