1 | #ifndef __XIOS_CCalendar_util__ |
---|
2 | #define __XIOS_CCalendar_util__ |
---|
3 | |
---|
4 | /// XIOS headers /// |
---|
5 | #include "xios_spl.hpp" |
---|
6 | #include "exception.hpp" |
---|
7 | #include "calendar.hpp" |
---|
8 | |
---|
9 | namespace 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 | //!< Provides a fake "less" comparator for durations that can be used as a comparator for maps |
---|
39 | struct DurationFakeLessComparator { |
---|
40 | bool operator()(const CDuration& dur1, const CDuration& dur2) const; |
---|
41 | }; |
---|
42 | } // namespace xios |
---|
43 | |
---|
44 | #endif //__XIOS_CCalendar_util__ |
---|