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_array.hpp

    r1107 r1112  
    5353            /// Autre /// 
    5454            virtual string toString(void) const { return _toString();} 
    55             virtual void fromString(const StdString & str) { _fromString(str);} 
     55            virtual void fromString(const StdString & str) { if (str==resetInheritanceStr) { reset(); _canInherite=false ;}  else _fromString(str);} 
    5656            virtual bool toBuffer  (CBufferOut& buffer) const { return _toBuffer(buffer);} 
    5757            virtual bool fromBuffer(CBufferIn& buffer) { return _fromBuffer(buffer); } 
Note: See TracChangeset for help on using the changeset viewer.