MoonCycle.h
Go to the documentation of this file.
1 #ifndef _utl_MoonCycle_h_
2 #define _utl_MoonCycle_h_
3 
4 #include <utl/TimeStamp.h>
5 
6 
7 namespace utl {
8 
18  class MoonCycle {
19  public:
23  };
24 
25  enum LunationType {
30  };
31 
32  MoonCycle(const TimeStamp& time) : fTime(time) { }
33 
36  double GetLunation(const LunationType type = eFullMoon,
37  const LunationEpoch epoch = eJan2004) const;
38 
40  long GetFullMoonCycle(const LunationEpoch epoch = eJan2004) const
41  { return GetLunation(eFullMoon, epoch); }
42 
43  private:
45  };
46 
47 }
48 
49 
50 #endif
MoonCycle(const TimeStamp &time)
Definition: MoonCycle.h:32
const TimeStamp fTime
Definition: MoonCycle.h:44
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
long GetFullMoonCycle(const LunationEpoch epoch=eJan2004) const
Integer number of full moons since a start date (default = Jan 2004).
Definition: MoonCycle.h:40
double GetLunation(const LunationType type=eFullMoon, const LunationEpoch epoch=eJan2004) const
Definition: MoonCycle.cc:15

, generated on Tue Sep 26 2023.