source: XIOS/trunk/src/calendar_util.hpp @ 342

Last change on this file since 342 was 335, checked in by ymipsl, 12 years ago

Change namespace xmlioserver -> xios

YM

File size: 1.4 KB
RevLine 
[219]1#ifndef __XMLIO_CCalendar_util__
2#define __XMLIO_CCalendar_util__
3
[335]4/// xios headers ///
[219]5#include "xmlioserver_spl.hpp"
6#include "exception.hpp"
7#include "calendar.hpp"
8
[335]9namespace xios
[219]10{
11   namespace date
12   {
13      /// ////////////////////// Déclarations ////////////////////// ///
14
15      CDuration operator*(const double    & scal, const CDuration & ddr);
16      CDuration operator-(const CDuration & ddr , const CDuration & dr);
17      CDuration operator+(const CDuration & ddr , const CDuration & dr);
18      CDuration operator*(const CDuration & ddr , const double    & scal);
19      CDuration operator-(const CDuration & ddr);
20
21      CDate operator+(const CDate & dt, const CDuration & dr); // Non testée.
22      CDate operator-(const CDate & dt, const CDuration & dr);
23
24      CDuration operator-(const CDate & dt0, const CDate & dt1);
25
26      /// Les opérateurs de comparaison. (Non testés pour le moment)
27      bool operator==(const CDate& dt0, const CDate& dt1);
28      bool operator< (const CDate& dt0, const CDate& dt1);
29
30      bool operator!=(const CDate & dt0, const CDate & dt1);
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
35      ///---------------------------------------------------------------
36
37   } // namespace date
[335]38} // namespace xios
[219]39
40#endif //__XMLIO_CCalendar_util__
Note: See TracBrowser for help on using the repository browser.