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

This class represents a date. More...

#include <GMSTDateTime.h>

Public Types

enum  Ori_TSM_Green { AN1900, AN1950, AN2000 }
 

Public Member Functions

 GMSTDateTime ()
 constructor More...
 
 ~GMSTDateTime ()
 Destructor. More...
 
 GMSTDateTime (const GMSTDateTime &rhs)
 Copy constructor. More...
 
 GMSTDateTime (double tsm, Ori_TSM_Green origine)
 Constructor with date initialisation. More...
 
 GMSTDateTime (CivilDateTime &rhs)
 Constructor with date initialisation using a CivilDateTime. More...
 
GMSTDateTimeoperator= (const GMSTDateTime &rhs)
 Affectation operator. More...
 
double get_tms ()
 
void set_tms (double tms)
 
Ori_TSM_Green get_origine ()
 
void set_origine (Ori_TSM_Green origine)
 

Protected Attributes

double _tms
 
Ori_TSM_Green _origine
 

Detailed Description

This class represents a date.

Definition at line 29 of file GMSTDateTime.h.

Member Enumeration Documentation

◆ Ori_TSM_Green

Constructor & Destructor Documentation

◆ GMSTDateTime() [1/4]

ossimplugins::GMSTDateTime::GMSTDateTime ( )

constructor

Definition at line 19 of file GMSTDateTime.cpp.

19  :
20  _tms(0)
21 {
22 }

◆ ~GMSTDateTime()

ossimplugins::GMSTDateTime::~GMSTDateTime ( )

Destructor.

Definition at line 24 of file GMSTDateTime.cpp.

25 {
26 }

◆ GMSTDateTime() [2/4]

ossimplugins::GMSTDateTime::GMSTDateTime ( const GMSTDateTime rhs)

Copy constructor.

Definition at line 28 of file GMSTDateTime.cpp.

28  :
29  _tms(rhs._tms),
30  _origine(rhs._origine)
31 {
32 }

◆ GMSTDateTime() [3/4]

ossimplugins::GMSTDateTime::GMSTDateTime ( double  tsm,
Ori_TSM_Green  origine 
)

Constructor with date initialisation.

Definition at line 34 of file GMSTDateTime.cpp.

34  :
35  _tms(tms),
36  _origine(origine)
37 {
38 }

◆ GMSTDateTime() [4/4]

ossimplugins::GMSTDateTime::GMSTDateTime ( CivilDateTime rhs)

Constructor with date initialisation using a CivilDateTime.

Definition at line 40 of file GMSTDateTime.cpp.

References ossimplugins::CivilDateTime::AsGMSTDateTime().

41 {
42  rhs.AsGMSTDateTime(this);
43 }

Member Function Documentation

◆ get_origine()

Ori_TSM_Green ossimplugins::GMSTDateTime::get_origine ( )
inline

◆ get_tms()

double ossimplugins::GMSTDateTime::get_tms ( )
inline

◆ operator=()

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

Affectation operator.

Definition at line 45 of file GMSTDateTime.cpp.

References _origine, and _tms.

46 {
47  _tms = rhs._tms;
48  _origine = rhs._origine;
49  return *this;
50 }

◆ set_origine()

void ossimplugins::GMSTDateTime::set_origine ( Ori_TSM_Green  origine)
inline

◆ set_tms()

void ossimplugins::GMSTDateTime::set_tms ( double  tms)
inline

Member Data Documentation

◆ _origine

Ori_TSM_Green ossimplugins::GMSTDateTime::_origine
protected

Definition at line 85 of file GMSTDateTime.h.

Referenced by operator=().

◆ _tms

double ossimplugins::GMSTDateTime::_tms
protected

Definition at line 84 of file GMSTDateTime.h.

Referenced by operator=().


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