Earth Observation Mission CFI Software DataHandling Software User Manual |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.26 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 00042 StfFile(const StfFile& stfFile); 00043 00045 ~StfFile() NOEXCEPT; 00046 00049 StfFile& operator=(const StfFile& other); 00050 00052 void read(); 00053 00055 void readVhr(); 00056 00058 void write(const std::string& fileName, 00059 const FixedHeader& fixedHead, 00060 const StfVhr& stfVhr, 00061 const std::vector<StfRec>& stfData); 00062 00064 void write(const FixedHeader& fixedHead, 00065 const StfVhr& stfVhr, 00066 const std::vector<StfRec>& stfData); 00067 00068 protected: 00069 private: 00071 explicit StfFile(const void* stf_file); 00072 00074 void* getInternalData() const; 00075 00076 }; //class StfFile 00077 } //namespace EECFI 00078 00079 #endif