source: XIOS/trunk/src/date/gregorian.hpp @ 334

Last change on this file since 334 was 334, checked in by ymipsl, 12 years ago
  • Add new attribut : time_origin for time axis origin which appear in nectdf file
  • centered time averaging for time axis
  • correct bug in calendar due to call of virtual function in the constructor

YM

File size: 1.4 KB
Line 
1#ifndef __XMLIO_CGregorianCalendar__
2#define __XMLIO_CGregorianCalendar__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "calendar.hpp"
7
8namespace xmlioserver
9{
10   namespace date
11   {
12      /// ////////////////////// Déclarations ////////////////////// ///
13      class CGregorianCalendar : public CCalendar
14      {
15            /// Typedef ///
16            typedef CCalendar SuperClass;
17
18         public :
19
20            /// Constructeur ///
21//            CGregorianCalendar(void);                                   // Not implemented yet.
22            CGregorianCalendar(const StdString & dateStr);
23            CGregorianCalendar(const StdString & dateStr,const StdString & timeOriginStr);
24            CGregorianCalendar(int yr = 0, int mth = 1, int d   = 1,
25                               int hr = 0, int min = 0, int sec = 0);
26            CGregorianCalendar(const CGregorianCalendar & calendar);       // Not implemented yet.
27            CGregorianCalendar(const CGregorianCalendar * calendar);       // Not implemented yet.
28
29            /// Accesseurs ///
30            virtual int getYearTotalLength(const CDate & date) const;
31            virtual int getMonthLength(const CDate & date) const;
32            virtual StdString getType(void) const;
33
34            /// Destructeur ///
35            virtual ~CGregorianCalendar(void);
36
37      }; // class CGregorianCalendar
38
39   } // namespace date
40} // namespace xmlioserver
41
42#endif // __XMLIO_CGregorianCalendar__
Note: See TracBrowser for help on using the repository browser.