[219] | 1 | #include "noleap.hpp" |
---|
[334] | 2 | #include "calendar.hpp" |
---|
[219] | 3 | |
---|
[335] | 4 | namespace xios |
---|
[219] | 5 | { |
---|
| 6 | /// ////////////////////// Définitions ////////////////////// /// |
---|
| 7 | |
---|
[532] | 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 | } |
---|
[219] | 16 | |
---|
[532] | 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 | } |
---|
[334] | 25 | |
---|
[219] | 26 | CNoLeapCalendar::CNoLeapCalendar(int yr, int mth, int d, |
---|
| 27 | int hr, int min, int sec) |
---|
[334] | 28 | : CCalendar("NoLeap") |
---|
| 29 | { initializeDate(yr, mth, d, hr, min, sec) ; } |
---|
[219] | 30 | |
---|
[334] | 31 | |
---|
[219] | 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 | ///-------------------------------------------------------------- |
---|
[591] | 41 | } // namespace xios |
---|
[219] | 42 | |
---|