Ignore:
Timestamp:
12/10/14 14:27:09 (9 years ago)
Author:
rlacroix
Message:

Add a new attribute type for dates and use it for the context's start_date and time_origin.

The "xios_date" type should now be used to get/set date attributes through the Fortran interface. This avoids using strings to manipulate dates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/calendar.hpp

    r501 r532  
    3333            /// Constructeurs /// 
    3434            CCalendar(void); 
    35             CCalendar(const StdString & id) ; 
    36             CCalendar(const StdString & id, 
     35            CCalendar(const StdString& id) ; 
     36            CCalendar(const StdString& id, 
    3737                      int yr, int mth, int d, 
    3838                      int hr = 0, int min = 0, int sec = 0); 
    39             CCalendar(const StdString & id, const StdString & dateStr); 
    40             CCalendar(const StdString & id, const StdString & dateStr, const StdString & timeOrigin); 
     39            CCalendar(const StdString& id, const CDate& startDate); 
     40            CCalendar(const StdString& id, const CDate& startDate, const CDate& timeOrigin); 
    4141 
    42             CCalendar(const CCalendar & calendar);       // Not implemented yet. 
    43             CCalendar(const CCalendar * const calendar); // Not implemented yet. 
     42            CCalendar(const CCalendar& calendar);       // Not implemented yet. 
     43            CCalendar(const CCalendar* const calendar); // Not implemented yet. 
    4444 
    4545         public : 
     
    8787            //------------------------------------------------------------ 
    8888 
     89         protected: 
     90             
     91            //!< Associate the dates to the calendar and check their validity 
     92            void initializeDate(); 
     93 
     94            //------------------------------------------------------------ 
     95 
    8996         private : 
    9097 
Note: See TracChangeset for help on using the changeset viewer.