![]() |
Earth Observation Mission CFI Software Lib Software User Manual |
![]() |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.2 00003 //-------------------------------------------------------- 00004 00005 //-------------------------------------------------------------------- 00006 // CVS Info: $Id: TimeCorrelation.h,v 1.12 2010/02/03 16:07:32 expcfi Exp $ 00007 //-------------------------------------------------------------------- 00008 00009 00010 #ifndef __TIMECORRELATION__ 00011 #define __TIMECORRELATION__ 00012 00013 //--INCLUDE----------------------------------------------------------- 00014 #include "LibData.h" 00015 #include "CfiError.h" 00016 #include "CfiId.h" 00017 00018 //--NAMESPACES-------------------------------------------------------- 00019 using namespace std; 00020 00021 namespace EECFI 00022 { 00023 00027 class TimeCorrelation: public CfiId 00028 { 00029 friend class Time; 00030 friend class OrbitId; 00031 friend class OrbitFunc; 00032 friend class SatNomTransId; 00033 friend class SatTransId; 00034 friend class InstrTransId; 00035 friend class Attitude; 00036 00037 public: 00038 00040 TimeCorrelation(double time_corr[4]) throw (CfiError); 00041 00043 TimeCorrelation(long timeModel, vector<string> timeFiles, 00044 TimeInterval time, 00045 TimeInterval &valTime) throw (CfiError); 00046 00048 TimeCorrelation(long timeModel, vector<string> timeFiles, 00049 long timeRef, 00050 OrbitInterval orbits, 00051 TimeInterval &valTime) throw (CfiError); 00052 00054 TimeCorrelation(long timeModel, vector<string> timeFiles, 00055 long timeRef, 00056 TimeInterval &valTime) throw (CfiError); 00057 00059 TimeCorrelation(); 00060 00062 ~TimeCorrelation() throw (CfiError); 00063 00065 TimeCorrelationData getData(); 00066 00070 void getLeapSecondInfo(long asciiFormat, 00071 long &leapFlag, 00072 string &UtcTimeBeforeLeap, 00073 string &UtcTimeAfterLeap) throw (CfiError); 00074 00076 void setData(TimeCorrelationData timeCorr); 00077 00078 protected: 00079 00081 GenericId* getId(); // this is the xl_time_id variable 00082 00084 void eraseObject() throw (CfiError); 00085 00086 private: 00087 00089 void FileInitialisation(long timeModel, vector<string> timeFiles, 00090 long timeInitMode, long timeRef, 00091 TimeInterval time, 00092 OrbitInterval orbits, 00093 TimeInterval &valTime) throw (CfiError); 00094 00095 }; 00096 00097 } // closing namespace 00098 00099 #endif