Ignore:
Timestamp:
12/02/14 15:18:09 (10 years ago)
Author:
rlacroix
Message:

Convert some attributes to enumerations:

  • file: par_access
  • context: calendar_type

Those changes should have no effect on existing XML configuration files and ensure that a proper error message is always displayed during parsing if the value is not supported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/config/calendar_type.conf

    r501 r526  
    11#ifdef __XMLIO_CAllLeapCalendar__ 
    2    DECLARE_CALENDAR(AllLeap  , AllLeap) 
     2   DECLARE_CALENDAR(AllLeap, calendar_type_attr::AllLeap) 
    33#endif //__XMLIO_CAllLeapCalendar__ 
    44 
    55#ifdef __XMLIO_CD360Calendar__ 
    6    DECLARE_CALENDAR(D360  , D360) 
     6   DECLARE_CALENDAR(D360, calendar_type_attr::D360) 
    77#endif //__XMLIO_CD360Calendar__ 
    88 
    99#ifdef __XMLIO_CGregorianCalendar__ 
    10    DECLARE_CALENDAR(Gregorian  , Gregorian) 
     10   DECLARE_CALENDAR(Gregorian, calendar_type_attr::Gregorian) 
    1111#endif //__XMLIO_CGregorianCalendar__ 
    1212 
    1313#ifdef __XMLIO_CJulianCalendar__ 
    14    DECLARE_CALENDAR(Julian  , Julian) 
     14   DECLARE_CALENDAR(Julian, calendar_type_attr::Julian) 
    1515#endif //__XMLIO_CJulianCalendar__ 
    1616 
    1717#ifdef __XMLIO_CNoLeapCalendar__ 
    18    DECLARE_CALENDAR(NoLeap  , NoLeap) 
     18   DECLARE_CALENDAR(NoLeap, calendar_type_attr::NoLeap) 
    1919#endif //__XMLIO_CNoLeapCalendar__ 
    20  
    21 #undef DECLARE_CALENDAR 
Note: See TracChangeset for help on using the changeset viewer.