OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimplugins::MJDDateTime Class Reference

This class represents an MJD date (Modified Julian date) More...

#include <MJDDateTime.h>

Public Member Functions

 MJDDateTime ()
 constructor More...
 
 ~MJDDateTime ()
 Destructor. More...
 
 MJDDateTime (const MJDDateTime &rhs)
 Copy constructor. More...
 
 MJDDateTime (long day, unsigned long second, unsigned long microsecond)
 Constructor with date initialisation. More...
 
MJDDateTimeoperator= (const MJDDateTime &rhs)
 Affectation operator. More...
 
long get_day ()
 
unsigned long get_second ()
 
unsigned long get_microsecond ()
 
void set_day (long day)
 
void set_second (unsigned long second)
 
void set_microsecond (unsigned long microsecond)
 

Protected Attributes

long _day
 
unsigned long _second
 
unsigned long _microsecond
 

Detailed Description

This class represents an MJD date (Modified Julian date)

Definition at line 25 of file MJDDateTime.h.

Constructor & Destructor Documentation

◆ MJDDateTime() [1/3]

ossimplugins::MJDDateTime::MJDDateTime ( )

constructor

Definition at line 18 of file MJDDateTime.cpp.

18  :
19  _day(0),
20  _second(0),
21  _microsecond(0)
22 {
23 }
unsigned long _microsecond
Definition: MJDDateTime.h:84

◆ ~MJDDateTime()

ossimplugins::MJDDateTime::~MJDDateTime ( )

Destructor.

Definition at line 25 of file MJDDateTime.cpp.

26 {
27 }

◆ MJDDateTime() [2/3]

ossimplugins::MJDDateTime::MJDDateTime ( const MJDDateTime rhs)

Copy constructor.

Definition at line 29 of file MJDDateTime.cpp.

29  :
30  _day(rhs._day),
31  _second(rhs._second),
32  _microsecond(rhs._microsecond)
33 {
34 }
unsigned long _microsecond
Definition: MJDDateTime.h:84

◆ MJDDateTime() [3/3]

ossimplugins::MJDDateTime::MJDDateTime ( long  day,
unsigned long  second,
unsigned long  microsecond 
)

Constructor with date initialisation.

Definition at line 36 of file MJDDateTime.cpp.

36  :
37  _day(day),
38  _second(second),
39  _microsecond(microsecond)
40 {
41 }
unsigned long _microsecond
Definition: MJDDateTime.h:84

Member Function Documentation

◆ get_day()

long ossimplugins::MJDDateTime::get_day ( )
inline

Definition at line 51 of file MJDDateTime.h.

Referenced by ossimplugins::JSDDateTime::JSDDateTime().

52  {
53  return _day;
54  };

◆ get_microsecond()

unsigned long ossimplugins::MJDDateTime::get_microsecond ( )
inline

Definition at line 61 of file MJDDateTime.h.

Referenced by ossimplugins::JSDDateTime::JSDDateTime().

62  {
63  return _microsecond;
64  };
unsigned long _microsecond
Definition: MJDDateTime.h:84

◆ get_second()

unsigned long ossimplugins::MJDDateTime::get_second ( )
inline

Definition at line 56 of file MJDDateTime.h.

Referenced by ossimplugins::JSDDateTime::JSDDateTime().

57  {
58  return _second;
59  };

◆ operator=()

MJDDateTime & ossimplugins::MJDDateTime::operator= ( const MJDDateTime rhs)

Affectation operator.

Definition at line 43 of file MJDDateTime.cpp.

References _day, _microsecond, and _second.

44 {
45  _day = rhs._day;
46  _second = rhs._second;
47  _microsecond = rhs._microsecond;
48 
49  return *this;
50 }
unsigned long _microsecond
Definition: MJDDateTime.h:84

◆ set_day()

void ossimplugins::MJDDateTime::set_day ( long  day)
inline

Definition at line 66 of file MJDDateTime.h.

67  {
68  _day = day;
69  };

◆ set_microsecond()

void ossimplugins::MJDDateTime::set_microsecond ( unsigned long  microsecond)
inline

Definition at line 76 of file MJDDateTime.h.

77  {
78  _microsecond = microsecond;
79  };
unsigned long _microsecond
Definition: MJDDateTime.h:84

◆ set_second()

void ossimplugins::MJDDateTime::set_second ( unsigned long  second)
inline

Definition at line 71 of file MJDDateTime.h.

72  {
73  _second = second;
74  };

Member Data Documentation

◆ _day

long ossimplugins::MJDDateTime::_day
protected

Definition at line 79 of file MJDDateTime.h.

Referenced by operator=().

◆ _microsecond

unsigned long ossimplugins::MJDDateTime::_microsecond
protected

Definition at line 84 of file MJDDateTime.h.

Referenced by operator=().

◆ _second

unsigned long ossimplugins::MJDDateTime::_second
protected

Definition at line 83 of file MJDDateTime.h.

Referenced by operator=().


The documentation for this class was generated from the following files: