00001 #pragma ident "$Id: SEMStream.hpp 383 2007-01-30 16:23:29Z ehagen $" 00002 00003 00004 00010 //============================================================================ 00011 // 00012 // This file is part of GPSTk, the GPS Toolkit. 00013 // 00014 // The GPSTk is free software; you can redistribute it and/or modify 00015 // it under the terms of the GNU Lesser General Public License as published 00016 // by the Free Software Foundation; either version 2.1 of the License, or 00017 // any later version. 00018 // 00019 // The GPSTk is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 // GNU Lesser General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU Lesser General Public 00025 // License along with GPSTk; if not, write to the Free Software Foundation, 00026 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00027 // 00028 // Copyright 2004, The University of Texas at Austin 00029 // 00030 //============================================================================ 00031 00032 //============================================================================ 00033 // 00034 //This software developed by Applied Research Laboratories at the University of 00035 //Texas at Austin, under contract to an agency or agencies within the U.S. 00036 //Department of Defense. The U.S. Government retains all rights to use, 00037 //duplicate, distribute, disclose, or release this software. 00038 // 00039 //Pursuant to DoD Directive 523024 00040 // 00041 // DISTRIBUTION STATEMENT A: This software has been approved for public 00042 // release, distribution is unlimited. 00043 // 00044 //============================================================================= 00045 00046 00047 00048 00049 00050 00051 #ifndef SEMSTREAM_HPP 00052 #define SEMSTREAM_HPP 00053 00054 00055 #include "FFTextStream.hpp" 00056 #include "SEMHeader.hpp" 00057 00058 namespace gpstk 00059 { 00062 00075 class SEMStream : public FFTextStream 00076 { 00077 public: 00078 00080 SEMStream() {} 00081 00087 SEMStream(const char* fn, 00088 std::ios::openmode mode=std::ios::in) 00089 : FFTextStream(fn, mode), headerRead(false) {}; 00090 00092 virtual ~SEMStream() {} 00093 00095 virtual void open(const char* fn, std::ios::openmode mode) 00096 { 00097 FFTextStream::open(fn, mode); 00098 headerRead = false; 00099 header = SEMHeader(); 00100 } 00101 00103 SEMHeader header; 00104 00106 bool headerRead; 00107 00108 }; // class SEMStream 00109 00111 00112 } // namespace gpstk 00113 00114 #endif
1.3.9.1