1 | #ifndef __XMLIO_CCalendar_util__ |
---|
2 | #define __XMLIO_CCalendar_util__ |
---|
3 | |
---|
4 | /// xmlioserver headers /// |
---|
5 | #include "xmlioserver_spl.hpp" |
---|
6 | #include "exception.hpp" |
---|
7 | #include "calendar.hpp" |
---|
8 | |
---|
9 | namespace xmlioserver |
---|
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 |
---|
38 | } // namespace xmlioserver |
---|
39 | |
---|
40 | #endif //__XMLIO_CCalendar_util__ |
---|