source: XMLIO_V2/dev/common/src/xmlio/date/allleap.cpp @ 219

Last change on this file since 219 was 219, checked in by hozdoba, 13 years ago

Préparation nouvelle arborescence

File size: 1.2 KB
Line 
1#include "allleap.hpp"
2
3namespace xmlioserver
4{
5   namespace date
6   {
7      /// ////////////////////// Définitions ////////////////////// ///
8
9      CAllLeapCalendar::CAllLeapCalendar(const StdString & dateStr)
10         : CCalendar("AllLeap", dateStr)
11      { /* Ne rien faire de plus */ }
12
13      CAllLeapCalendar::CAllLeapCalendar(int yr, int mth, int d,
14                                         int hr, int min, int sec)
15         : CCalendar("AllLeap", yr, mth, d, hr, min, sec)
16      { /* Ne rien faire de plus */ }
17
18      CAllLeapCalendar::~CAllLeapCalendar(void)
19      { /* Ne rien faire de plus */ }
20
21      ///--------------------------------------------------------------
22
23      int CAllLeapCalendar::getYearTotalLength(const CDate & date) const
24      { return (366 * 86400); }
25
26      int CAllLeapCalendar::getMonthLength(const CDate & date) const
27      {
28         if (date.getMonth() == 2) return (29);
29         return (CCalendar::getMonthLength(date));
30      }
31
32      StdString CAllLeapCalendar::getType(void) const
33      { return (StdString("allleap")); }
34
35      ///--------------------------------------------------------------
36   } // namespace date
37} // namespace xmlioserver
38
Note: See TracBrowser for help on using the repository browser.