OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
MJDDateTime.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef MJDDateTime_h
13 #define MJDDateTime_h
14 
16 
17 namespace ossimplugins
18 {
19 
20 
21 class CivilDateTime;
26 {
27 public:
31  MJDDateTime();
35  ~MJDDateTime();
39  MJDDateTime(const MJDDateTime& rhs);
40 
44  MJDDateTime(long day, unsigned long second, unsigned long microsecond);
45 
49  MJDDateTime& operator=(const MJDDateTime& rhs);
50 
51  long get_day()
52  {
53  return _day;
54  };
55 
56  unsigned long get_second()
57  {
58  return _second;
59  };
60 
61  unsigned long get_microsecond()
62  {
63  return _microsecond;
64  };
65 
66  void set_day(long day)
67  {
68  _day = day;
69  };
70 
71  void set_second(unsigned long second)
72  {
73  _second = second;
74  };
75 
76  void set_microsecond(unsigned long microsecond)
77  {
78  _microsecond = microsecond;
79  };
80 protected:
81 
82  long _day;
83  unsigned long _second;
84  unsigned long _microsecond;
85 
86 
87 private:
88 };
89 }
90 
91 #endif
void set_microsecond(unsigned long microsecond)
Definition: MJDDateTime.h:76
void set_second(unsigned long second)
Definition: MJDDateTime.h:71
unsigned long get_second()
Definition: MJDDateTime.h:56
This class represents an MJD date (Modified Julian date)
Definition: MJDDateTime.h:25
void set_day(long day)
Definition: MJDDateTime.h:66
unsigned long _microsecond
Definition: MJDDateTime.h:84
unsigned long get_microsecond()
Definition: MJDDateTime.h:61
#define OSSIM_PLUGINS_DLL