1 | #include "noleap.hpp" |
---|
2 | #include "calendar.hpp" |
---|
3 | |
---|
4 | namespace xios |
---|
5 | { |
---|
6 | /// ////////////////////// Définitions ////////////////////// /// |
---|
7 | |
---|
8 | CNoLeapCalendar::CNoLeapCalendar(const CDate& startDate) |
---|
9 | : CCalendar("NoLeap", startDate) |
---|
10 | { |
---|
11 | // This will check that the dates are conform with the calendar. |
---|
12 | // We cannot call this from the parent constructor because we |
---|
13 | // want the methods of this class to be used |
---|
14 | initializeDate(); |
---|
15 | } |
---|
16 | |
---|
17 | CNoLeapCalendar::CNoLeapCalendar(const CDate& startDate, const CDate& timeOrigin) |
---|
18 | : CCalendar("NoLeap", startDate, timeOrigin) |
---|
19 | { |
---|
20 | // This will check that the dates are conform with the calendar. |
---|
21 | // We cannot call this from the parent constructor because we |
---|
22 | // want the methods of this class to be used |
---|
23 | initializeDate(); |
---|
24 | } |
---|
25 | |
---|
26 | CNoLeapCalendar::CNoLeapCalendar(int yr, int mth, int d, |
---|
27 | int hr, int min, int sec) |
---|
28 | : CCalendar("NoLeap") |
---|
29 | { initializeDate(yr, mth, d, hr, min, sec) ; } |
---|
30 | |
---|
31 | |
---|
32 | CNoLeapCalendar::~CNoLeapCalendar(void) |
---|
33 | { /* Ne rien faire de plus */ } |
---|
34 | |
---|
35 | ///-------------------------------------------------------------- |
---|
36 | |
---|
37 | StdString CNoLeapCalendar::getType(void) const |
---|
38 | { return (StdString("noleap")); } |
---|
39 | |
---|
40 | ///-------------------------------------------------------------- |
---|
41 | } // namespace xios |
---|
42 | |
---|