Ignore:
Timestamp:
05/03/17 14:59:25 (7 years ago)
Author:
ymipsl
Message:

For xml : if attribute get the string value of "_reset_", attribute will be empty and the attribute will remain empty after inheritance.

YM

File:
1 edited

Legend:

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

    r1105 r1112  
    6565            /// Autre /// 
    6666            virtual StdString toString(void) const { return _toString();} 
    67             virtual void fromString(const StdString & str) { _fromString(str);} 
     67            virtual void fromString(const StdString & str) { if (str==resetInheritanceStr) { reset(); _canInherite=false ;}  else _fromString(str);} 
    6868//            virtual CAttributeTemplate* clone() const {} 
    6969//            virtual void toBinary  (StdOStream & os) const; 
Note: See TracChangeset for help on using the changeset viewer.