Ignore:
Timestamp:
10/07/10 16:17:04 (14 years ago)
Author:
hozdoba
Message:

suite du précédent commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/date.hpp

    r124 r127  
    88      public : 
    99 
    10          Date(const AbstractCalendar& cal, int yr = 0, int mth = 1, int d = 1, int hr = 0, int min = 0 , int sec = 0) : relCalendar(cal) 
    11             , year(yr), month(mth), day(d), hour(hr), minute(min), second(sec) 
     10         Date(const AbstractCalendar& cal, 
     11              int yr = 0, int mth = 1, int d = 1, int hr = 0, int min = 0 , int sec = 0) 
     12                  : relCalendar(cal) 
     13                  , year(yr), month(mth), day(d), hour(hr), minute(min), second(sec) 
    1214         { 
    13             if(!checkDate()) 
     15            if(!this->checkDate()) 
    1416               WARNING("La date initialisée a été modifiée car elle était incorrecte par rapport au calendrier souhaité."); 
    1517         } 
     
    1820            , year(d.year), month(d.month), day(d.day), hour(d.hour), minute(d.minute), second(d.second) 
    1921         { 
    20             if(!checkDate()) 
     22            if(!this->checkDate()) 
    2123               WARNING("La date initialisée a été modifiée car elle était incorrecte par rapport au calendrier souhaité."); 
    2224         } 
     
    5052         } 
    5153 
    52          static Date FromString(const string& str, const AbstractCalendar& cal); 
    53  
    5454         /// Divers accesseurs. 
    55          int getYear  (void) const { return (year); } 
    56          int getMonth (void) const { return (month); } 
    57          int getDay   (void) const { return (day); } 
    58          int getHour  (void) const { return (hour); } 
     55         int getYear  (void) const { return (year  ); } 
     56         int getMonth (void) const { return (month ); } 
     57         int getDay   (void) const { return (day   ); } 
     58         int getHour  (void) const { return (hour  ); } 
    5959         int getMinute(void) const { return (minute); } 
    6060         int getSecond(void) const { return (second); } 
     
    7070         } 
    7171 
    72  
    73  
    7472         const AbstractCalendar& getRelCalendar(void) const { return (relCalendar); } 
    7573 
    7674         ~Date() 
    7775         {/* Ne rien faire de plus */} 
     76 
     77      public : /* static */ 
     78 
     79         static Date FromString(const string& str, const AbstractCalendar& cal); 
    7880 
    7981      private : 
Note: See TracChangeset for help on using the changeset viewer.