source: XIOS/dev/dev_trunk_omp/src/date/gregorian.hpp @ 1629

Last change on this file since 1629 was 1629, checked in by yushan, 5 years ago

inlining calendar fonctions

  • 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.5 KB
Line 
1#ifndef __XIOS_CGregorianCalendar__
2#define __XIOS_CGregorianCalendar__
3
4/// XIOS headers ///
5#include "xios_spl.hpp"
6#include "calendar.hpp"
7
8namespace xios
9{
10      /// ////////////////////// Déclarations ////////////////////// ///
11      class CGregorianCalendar : public CCalendar
12      {
13            /// Typedef ///
14            typedef CCalendar SuperClass;
15
16         public :
17
18            /// Constructeur ///
19//            CGregorianCalendar(void);                                   // Not implemented yet.
20            CGregorianCalendar(const CDate& startDate);
21            CGregorianCalendar(const CDate& startDate, const CDate& timeOrigin);
22            CGregorianCalendar(int yr = 0, int mth = 1, int d   = 1,
23                               int hr = 0, int min = 0, int sec = 0);
24            CGregorianCalendar(const CGregorianCalendar& calendar);       // Not implemented yet.
25            CGregorianCalendar(const CGregorianCalendar* calendar);       // Not implemented yet.
26
27            /// Accesseurs ///
28            virtual int getYearTotalLength(const CDate & date) const;
29            virtual int getMonthLength(const CDate & date) const;
30            inline virtual StdString getType(void) const { return (StdString("gregorian")); };
31            inline virtual int getYearLength (void) const { return 12; } ;
32
33            inline virtual bool hasLeapYear() const { return true; };
34
35            /// Destructeur ///
36            virtual ~CGregorianCalendar(void);
37
38      }; // class CGregorianCalendar
39
40} // namespace xios
41
42#endif // __XIOS_CGregorianCalendar__
Note: See TracBrowser for help on using the repository browser.