OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
GMSTDateTime.cpp
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 #include <otb/GMSTDateTime.h>
13 #include <otb/CivilDateTime.h>
14 
15 namespace ossimplugins
16 {
17 
18 
20  _tms(0)
21 {
22 }
23 
25 {
26 }
27 
29  _tms(rhs._tms),
30  _origine(rhs._origine)
31 {
32 }
33 
35  _tms(tms),
36  _origine(origine)
37 {
38 }
39 
41 {
42  rhs.AsGMSTDateTime(this);
43 }
44 
46 {
47  _tms = rhs._tms;
48  _origine = rhs._origine;
49  return *this;
50 }
51 }
This class represents a date.
Definition: GMSTDateTime.h:29
This class represents a date and time in the civil format.
Definition: CivilDateTime.h:30
int AsGMSTDateTime(GMSTDateTime *GMSTdate)
This function converts the current CivilDateTime into GMSTDateTime.
GMSTDateTime & operator=(const GMSTDateTime &rhs)
Affectation operator.