source: XIOS/trunk/src/date/d360.hpp @ 532

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

Add a new attribute type for dates and use it for the context's start_date and time_origin.

The "xios_date" type should now be used to get/set date attributes through the Fortran interface. This avoids using strings to manipulate dates.

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