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/attribute_template.hpp

    r432 r445  
    4848            void set(const CAttribute& attr) ; 
    4949            void set(const CAttributeTemplate& attr) ; 
     50 
     51            void setInheritedValue(const CAttributeTemplate& attr ); 
     52            void setInheritedValue(const CAttribute& attr ); 
     53            T getInheritedValue(void) const ; 
     54            bool hasInheritedValue(void) const; 
    5055             
    5156            /// Destructeur /// 
     
    8792          bool _toBuffer  (CBufferOut& buffer) const; 
    8893          bool _fromBuffer(CBufferIn& buffer) ; 
     94           
     95          CType<T> inheritedValue ; 
    8996      }; // class CAttribute     
    9097       
Note: See TracChangeset for help on using the changeset viewer.