Ignore:
Timestamp:
02/14/12 14:37:56 (12 years ago)
Author:
ymipsl
Message:

CXios::getin has now default parameters

YM

File:
1 edited

Legend:

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

    r300 r311  
    1313  } 
    1414 
     15  template <typename T> 
     16  T CXios::getin(const string& id, const T& defaultValue) 
     17  { 
     18    if (CObjectFactory::HasObject<CVariable>("xios",id)) 
     19      return CObjectFactory::GetObject<CVariable>("xios",id)->getData<T>() ; 
     20    else return defaultValue ; 
     21  } 
    1522 
    1623 
Note: See TracChangeset for help on using the changeset viewer.