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/interface/c_attr/iccontext_attr.cpp

    r509 r526  
    2222    if(!cstr2string(calendar_type, calendar_type_size, calendar_type_str)) return; 
    2323     CTimer::get("XIOS").resume(); 
    24     context_hdl->calendar_type.setValue(calendar_type_str); 
     24    context_hdl->calendar_type.fromString(calendar_type_str); 
    2525     CTimer::get("XIOS").suspend(); 
    2626  } 
     
    2929  { 
    3030     CTimer::get("XIOS").resume(); 
    31     if(!string_copy(context_hdl->calendar_type.getInheritedValue(),calendar_type , calendar_type_size)) 
     31    if(!string_copy(context_hdl->calendar_type.getInheritedStringValue(),calendar_type , calendar_type_size)) 
    3232      ERROR("void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size)", <<"Input string is to short"); 
    3333     CTimer::get("XIOS").suspend(); 
Note: See TracChangeset for help on using the changeset viewer.