source: XIOS/trunk/src/date/noleap.cpp @ 1501

Last change on this file since 1501 was 591, checked in by rlacroix, 9 years ago

Remove leftovers from the XMLIO age.

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 1.4 KB
RevLine 
[219]1#include "noleap.hpp"
[334]2#include "calendar.hpp"
[219]3
[335]4namespace xios
[219]5{
6      /// ////////////////////// Définitions ////////////////////// ///
7
[532]8      CNoLeapCalendar::CNoLeapCalendar(const CDate& startDate)
9         : CCalendar("NoLeap", startDate)
10      {
11         // This will check that the dates are conform with the calendar.
12         // We cannot call this from the parent constructor because we
13         // want the methods of this class to be used
14         initializeDate();
15      }
[219]16
[532]17      CNoLeapCalendar::CNoLeapCalendar(const CDate& startDate, const CDate& timeOrigin)
18         : CCalendar("NoLeap", startDate, timeOrigin)
19      {
20         // This will check that the dates are conform with the calendar.
21         // We cannot call this from the parent constructor because we
22         // want the methods of this class to be used
23         initializeDate();
24      }
[334]25
[219]26      CNoLeapCalendar::CNoLeapCalendar(int yr, int mth, int d,
27                                       int hr, int min, int sec)
[334]28         : CCalendar("NoLeap")
29      { initializeDate(yr, mth, d, hr, min, sec) ; }
[219]30
[334]31
[219]32      CNoLeapCalendar::~CNoLeapCalendar(void)
33      { /* Ne rien faire de plus */ }
34
35      ///--------------------------------------------------------------
36
37      StdString CNoLeapCalendar::getType(void) const
38      { return (StdString("noleap")); }
39
40      ///--------------------------------------------------------------
[591]41} // namespace xios
[219]42
Note: See TracBrowser for help on using the repository browser.