Earth Observation Mission CFI Software DataHandling Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.18 00003 //-------------------------------------------------------- 00004 00005 //-------------------------------------------------------------- 00006 // CVS Info: $Id: StfFile.h,v 1.15 2014-02-20 20:02:24 cavm Exp $ 00007 //-------------------------------------------------------------- 00008 00009 #ifndef _STFFILE_H 00010 #define _STFFILE_H 00011 00012 //-INCLUDE--------------------------------------------- 00013 #include "EEFile.h" 00014 #include "StfRec.h" 00015 00016 #include <string> 00017 #include <vector> 00018 00019 //-NAMESPACES------------------------------------------ 00020 00021 namespace EECFI 00022 { 00023 00027 class XD_DECL StfFile:public EEFile 00028 { 00029 friend class Swath; 00030 friend class SwathId; 00031 00032 public: 00033 00034 std::vector<StfRec> stfRec; 00035 StfVhr *vhr; 00036 00038 StfFile(); 00039 00041 explicit StfFile(const std::string &fileNam); 00042 00044 StfFile(const StfFile &stfFile); 00045 00047 ~StfFile() NOEXCEPT; 00048 00050 void read() ; 00051 00053 void readVhr() ; 00054 00056 void write( const std::string &fileName, 00057 const FixedHeader &fixedHead, 00058 const StfVhr &stfVhr, 00059 const std::vector<StfRec> &stfData) ; 00060 00062 void write( const FixedHeader &fixedHead, 00063 const StfVhr &stfVhr, 00064 const std::vector<StfRec> &stfData) ; 00065 00067 void operator=( const StfFile &stfFile ); 00068 00069 protected: 00070 00071 private: 00073 explicit StfFile( const void *stf_file ) ; 00074 00076 void* getInternalData() const; 00077 00079 void eraseStf(); 00080 00081 };//class StfFile 00082 }//namespace EECFI 00083 00084 #endif