source: XIOS1/trunk/src/calendar_util.hpp @ 2542

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

Improve CF compliance: Minor tweaks and improvements.

  • Bump the CF version to 1.5.
  • Use the same bounds dimension for all axis, including time axis.
  • Add a standard_name attribute for cell area variables.
  • Set the interval part of cell_methods attribute only when the write interval and the operation interval are different.
  • 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 __XMLIO_CCalendar_util__
2#define __XMLIO_CCalendar_util__
3
4/// xios headers ///
5#include "xmlioserver_spl.hpp"
6#include "exception.hpp"
7#include "calendar.hpp"
8
9namespace xios
10{
11      /// ////////////////////// Déclarations ////////////////////// ///
12
13      CDuration operator*(const double    & scal, const CDuration & ddr);
14      CDuration operator-(const CDuration & ddr , const CDuration & dr);
15      CDuration operator+(const CDuration & ddr , const CDuration & dr);
16      CDuration operator*(const CDuration & ddr , const double    & scal);
17      CDuration operator-(const CDuration & ddr);
18
19      CDate operator+(const CDate & dt, const CDuration & dr); // Non testée.
20      CDate operator-(const CDate & dt, const CDuration & dr);
21
22      CDuration operator-(const CDate & dt0, const CDate & dt1);
23
24      /// Les opérateurs de comparaison. (Non testés pour le moment)
25      bool operator==(const CDuration& ddr, const CDuration& dr);
26      bool operator!=(const CDuration& ddr, const CDuration& dr);
27
28      bool operator==(const CDate& dt0, const CDate& dt1);
29      bool operator< (const CDate& dt0, const CDate& dt1);
30
31      bool operator!=(const CDate & dt0, const CDate & dt1);
32      bool operator> (const CDate & dt0, const CDate & dt1);
33      bool operator>=(const CDate & dt0, const CDate & dt1);
34      bool operator<=(const CDate & dt0, const CDate & dt1);
35
36      ///---------------------------------------------------------------
37
38} // namespace xios
39
40#endif //__XMLIO_CCalendar_util__
Note: See TracBrowser for help on using the repository browser.