Changeset 131 for XMLIO_V2/dev/dev_rv/src/XMLIO/date.hpp
- Timestamp:
- 10/13/10 15:25:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/date.hpp
r130 r131 9 9 10 10 Date(const AbstractCalendar& cal, 11 int yr = 0, int mth = 1, int d = 1, int hr = 0, int min = 0 , int sec = 0) 11 int yr = 0, int mth = 1, int d = 1, 12 int hr = 0, int min = 0, int sec = 0) 12 13 : relCalendar(cal) 13 14 , year(yr), month(mth), day(d), hour(hr), minute(min), second(sec) … … 17 18 } 18 19 19 Date(const Date& d) : relCalendar(d.getRelCalendar()) 20 , year(d.year), month(d.month), day(d.day), hour(d.hour), minute(d.minute), second(d.second) 20 Date(const Date& d) 21 : relCalendar(d.getRelCalendar()), 22 year(d.year), month(d.month) , day(d.day), 23 hour(d.hour), minute(d.minute), second(d.second) 21 24 { 22 25 if(!this->checkDate()) … … 27 30 { 28 31 // relCalendar = d.getRelCalendar(); << inutile si fonction bien utilisée 29 year = d.year; month = d.month; day= d.day;32 year = d.year; month = d.month ; day = d.day; 30 33 hour = d.hour; minute = d.minute; second = d.second; 31 34 return (*this); 32 35 } 33 36 34 operator Time(void); // Retourne le nombre de secondes écoulées depuis la date initiale définie dans le calendrier.35 bool checkDate(void); // Vérifie la validité de la date.37 inline operator Time(void); // Retourne le nombre de secondes écoulées depuis la date initiale définie dans le calendrier. 38 inline bool checkDate(void); // Vérifie la validité de la date. 36 39 37 40 std::string toString(void) const
Note: See TracChangeset
for help on using the changeset viewer.