00001 #pragma ident "$Id: FICHeader.hpp 70 2006-08-01 18:36:21Z 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 FICHEADER_HPP 00052 #define FICHEADER_HPP 00053 00054 #include "FFStream.hpp" 00055 #include "FICBase.hpp" 00056 00057 namespace gpstk 00058 { 00068 class FICHeader : public FICBase 00069 { 00070 public: 00072 FICHeader() {} 00073 00075 virtual ~FICHeader() {} 00076 00078 virtual bool isHeader() const {return true;} 00079 00083 virtual void dump(std::ostream& s) const; 00084 00086 std::string header; 00087 00089 static const int headerSize; 00090 00091 protected: 00093 virtual void reallyPutRecord(FFStream& s) const 00094 throw(std::exception, gpstk::StringUtils::StringException, 00095 gpstk::FFStreamError); 00096 00106 virtual void reallyGetRecord(FFStream& s) 00107 throw(std::exception, gpstk::StringUtils::StringException, 00108 gpstk::FFStreamError); 00109 00110 }; // class FICHeader 00111 } // namespace gpstk 00112 00113 #endif
1.3.9.1