Ignore:
Timestamp:
06/19/13 10:09:36 (11 years ago)
Author:
ymipsl
Message:

Add possibility to make inheritance of attributes and reference before closing the context definition.
New fortran fonction : xios_solve inheritance()
After this call, the value of attribute have the inherited value of their parent.

YM

File:
1 edited

Legend:

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

    r369 r445  
    263263    
    264264   template <class U, class V, class W> 
    265       void CGroupTemplate<U, V, W>::solveDescInheritance(const CAttributeMap * const parent) 
     265      void CGroupTemplate<U, V, W>::solveDescInheritance(bool apply, const CAttributeMap * const parent) 
    266266   { 
    267267      if (parent != NULL) 
    268          SuperClassAttribute::setAttributes(parent); 
     268         SuperClassAttribute::setAttributes(parent, apply); 
    269269          
    270270      typename std::vector<U*>::const_iterator  
     
    276276      {  
    277277         U* child = *itc; 
    278          child->solveDescInheritance(this); 
     278         child->solveDescInheritance(apply,this); 
    279279      } 
    280280             
     
    283283         V* group = *itg; 
    284284         group->solveRefInheritance(); 
    285          group->solveDescInheritance(this); 
     285         group->solveDescInheritance(apply,this); 
    286286      } 
    287287   } 
Note: See TracChangeset for help on using the changeset viewer.