![]() |
Earth Observation Mission CFI Software DataHandling Software User Manual |
![]() |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.22 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 #include <string> 00016 #include <vector> 00017 00018 //-NAMESPACES------------------------------------------ 00019 00020 namespace EECFI 00021 { 00025 class XD_DECL StfFile : public EEFile 00026 { 00027 friend class Swath; 00028 friend class SwathId; 00029 00030 public: 00031 std::vector<StfRec> stfRec; 00032 StfVhr* vhr; 00033 00035 StfFile(); 00036 00038 explicit StfFile(const std::string& fileNam); 00039 00041 StfFile(const StfFile& stfFile); 00042 00044 ~StfFile() NOEXCEPT; 00045 00047 void read(); 00048 00050 void readVhr(); 00051 00053 void write(const std::string& fileName, 00054 const FixedHeader& fixedHead, 00055 const StfVhr& stfVhr, 00056 const std::vector<StfRec>& stfData); 00057 00059 void write(const FixedHeader& fixedHead, 00060 const StfVhr& stfVhr, 00061 const std::vector<StfRec>& stfData); 00062 00064 void operator=(const StfFile& stfFile); 00065 00066 protected: 00067 private: 00069 explicit StfFile(const void* stf_file); 00070 00072 void* getInternalData() const; 00073 00075 void eraseStf(); 00076 00077 }; //class StfFile 00078 } //namespace EECFI 00079 00080 #endif