![]() |
Earth Explorer Mission CFI Software DataHandling Software User Manual |
![]() |
00001 //-------------------------------------------------------------- 00002 // CVS Info: $Id: StfFile.h,v 1.7 2009/04/13 14:06:24 expcfi Exp $ 00003 //-------------------------------------------------------------- 00004 00005 #ifndef _STFFILE_H 00006 #define _STFFILE_H 00007 00008 //-INCLUDE--------------------------------------------- 00009 #include "EEFile.h" 00010 #include "StfRec.h" 00011 00012 #include <string> 00013 #include <vector> 00014 00015 //-NAMESPACES------------------------------------------ 00016 using namespace std; 00017 00018 namespace EECFI 00019 { 00020 00024 class StfFile:public EEFile 00025 { 00026 friend class Swath; 00027 public: 00028 00029 vector<StfRec> stfRec; 00030 StfVhr *vhr; 00031 00033 StfFile(); 00034 00036 StfFile(const string fileNam); 00037 00039 StfFile(const StfFile &stfFile); 00040 00042 ~StfFile(); 00043 00045 void read() throw (CfiError); 00046 00048 void readVhr() throw (CfiError); 00049 00051 void write( string fileName, 00052 FixedHeader &fixedHead, 00053 StfVhr &stfVhr, 00054 vector<StfRec> &stfData) throw (CfiError); 00055 00057 void write( FixedHeader &fixedHead, 00058 StfVhr &stfVhr, 00059 vector<StfRec> &stfData) throw (CfiError); 00060 00062 void operator=( const StfFile &stfFile ); 00063 00064 protected: 00065 00066 private: 00068 StfFile( void *stf_file ) throw (CfiError); 00069 00071 void* getInternalData() throw (CfiError); 00072 00074 void eraseStf(); 00075 00076 };//class StfFile 00077 }//namespace EECFI 00078 00079 #endif