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/icfile_attr.cpp

    r517 r526  
    215215    if(!cstr2string(par_access, par_access_size, par_access_str)) return; 
    216216     CTimer::get("XIOS").resume(); 
    217     file_hdl->par_access.setValue(par_access_str); 
     217    file_hdl->par_access.fromString(par_access_str); 
    218218     CTimer::get("XIOS").suspend(); 
    219219  } 
     
    222222  { 
    223223     CTimer::get("XIOS").resume(); 
    224     if(!string_copy(file_hdl->par_access.getInheritedValue(),par_access , par_access_size)) 
     224    if(!string_copy(file_hdl->par_access.getInheritedStringValue(),par_access , par_access_size)) 
    225225      ERROR("void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); 
    226226     CTimer::get("XIOS").suspend(); 
Note: See TracChangeset for help on using the changeset viewer.