00001 #pragma ident "$Id: FFIdentifier.hpp 2017 2009-07-08 17:19:42Z pben $" 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 // Copyright 2004, The University of Texas at Austin 00022 // 00023 //============================================================================ 00024 00025 //============================================================================ 00026 // 00027 //This software developed by Applied Research Laboratories at the University of 00028 //Texas at Austin, under contract to an agency or agencies within the U.S. 00029 //Department of Defense. The U.S. Government retains all rights to use, 00030 //duplicate, distribute, disclose, or release this software. 00031 // 00032 //Pursuant to DoD Directive 523024 00033 // 00034 // DISTRIBUTION STATEMENT A: This software has been approved for public 00035 // release, distribution is unlimited. 00036 // 00037 //============================================================================= 00038 00039 #ifndef FFIDENTIFIER_HPP 00040 #define FFIDENTIFIER_HPP 00041 00046 #include <string> 00047 00048 namespace gpstk 00049 { 00050 00051 // A function object to figure out what format a file is 00052 class FFIdentifier 00053 { 00054 public: 00055 enum FFType 00056 { 00057 tUnknown, 00058 tRinexObs, 00059 tRinexNav, 00060 tRinexMet, 00061 tSMODF, 00062 tFIC, 00063 tMDP, 00064 tSP3, 00065 tMSC, 00066 tYuma, 00067 tSEM, 00068 tAshtechSerial, 00069 tNovatelOem 00070 }; 00071 00072 FFIdentifier() 00073 : fileType(tUnknown) {}; 00074 FFIdentifier(const std::string& fn) 00075 throw(FileMissingException); 00076 FFIdentifier(const FFIdentifier& right) 00077 : fileType(right.fileType) {}; 00078 00079 operator FFType() {return fileType;} 00080 00081 static std::string describe(FFType thisId); 00082 00083 static int debugLevel; 00084 00085 private: 00086 FFType fileType; 00087 00088 00089 }; 00090 00091 00092 } 00093 00094 00095 00096 #endif
1.3.9.1