Changeset 550 for XIOS/trunk/src/calendar.hpp
- Timestamp:
- 02/10/15 14:23:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/calendar.hpp
r549 r550 68 68 69 69 //------------------------------------------------------------ 70 virtual StdString getType(void) const; 71 70 72 virtual int getMonthLength(const CDate& date) const; 71 72 virtual StdString getType(void) const;73 73 74 74 virtual int getYearTotalLength(const CDate& date) const; // Retourne la durée d'une année en seconde. … … 78 78 virtual int getHourLength (void) const; // Retourne la durée d'une heure en minute. 79 79 virtual int getMinuteLength(void) const; // Retourne la durée d'une minute en secondes. 80 / /!< Returns the day length expressed in seconds80 /*! Returns the day length expressed in seconds. */ 81 81 virtual int getDayLengthInSeconds(void) const; 82 82 83 virtual StdString getMonthName(int month_id) const; 83 virtual StdString getMonthName(int monthId) const; 84 virtual const StdString getMonthShortName(int monthId) const; 84 85 85 virtual const StdString getMonthShortName(int month_id) const; 86 /*! Test if the calendar can have leap year. */ 87 virtual bool hasLeapYear() const; 88 86 89 void initializeDate(int yr, int mth, int d, int hr = 0, int min = 0, int sec = 0); 87 90 void initializeDate(const StdString& dateStr); 88 91 void initializeDate(const StdString& dateStr, const StdString& timeOrigin); 92 93 /*! Simplify a duration based on the calendar information. */ 94 virtual CDuration& resolve(CDuration& dur, bool noNegativeTime = false) const; 95 96 /*! Parse a date using a generic parser. */ 97 static void parseDateDefault(StdIStream& in, CDate& date); 98 /*! Parse a date using the calendar's parser. */ 99 virtual void parseDate(StdIStream& in, CDate& date) const; 100 101 /*! Test if a date is valid with regard to the current calendar. */ 102 virtual bool checkDate(CDate& date) const; 89 103 90 104 //------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.