source: JEM-EUSO/esaf_cc_at_lal/packages/common/base/include/EusoTimeOrbit.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 1.3 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EusoTimeOrbit.hh 1003 2004-09-13 21:46:13Z thea $
3// M. Pallavicini created May,  7 2003
4// description of absolute time and ISS orbit
5
6#ifndef __EUSOTIMEORBIT_HH_
7#define __EUSOTIMEORBIT_HH_
8
9#include "euso.hh"
10#include <time.h>
11#include <string>
12
13class EusoTimeOrbit {
14public:
15    // dtor
16    virtual ~EusoTimeOrbit();
17   
18    // singleton
19    static EusoTimeOrbit *Get();
20
21    // run date
22    const string& GetRunDate();
23    void SetRunDate(time_t* pT=NULL);    // UTC date stored in time_t
24    void SetRunDate(const string& );     // UTC date as string dd-mmm-yyyy
25    void SetRunDate(const char* );       // same 
26   
27    // event UTC time
28    const string& GetEventTime();
29    void SetEventTime(time_t* pT=NULL);  // UTC time as time_t
30    void SetEventTime(const string& );   // UTC time as hh:mm:ss
31    void SetEventTime(const char* );     // same
32     
33
34    // ISS position
35    // to be done (returns ISS position at a given time)
36    // possibly, it may need a data base or an analytic function
37   
38private:
39    // ctor
40    EusoTimeOrbit();
41   
42    // singleton
43    static EusoTimeOrbit *me;
44
45    // local string
46    string fStringBuffer;
47   
48    // only one time and date in a UTC based time_t
49    time_t fTime;
50    ClassDef(EusoTimeOrbit,0)
51};
52
53#endif  /* __EUSOTIMEORBIT_HH_ */
54
Note: See TracBrowser for help on using the repository browser.