Changeset 445 for XIOS/trunk/src/attribute_map.cpp
- Timestamp:
- 06/19/13 10:09:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute_map.cpp
r432 r445 107 107 //--------------------------------------------------------------- 108 108 109 void CAttributeMap::setAttributes(const CAttributeMap * const _parent )109 void CAttributeMap::setAttributes(const CAttributeMap * const _parent, bool apply) 110 110 { 111 111 typedef std::pair<StdString, CAttribute*> StdStrAttPair; … … 117 117 if (this->hasAttribute(el.first)) 118 118 { 119 CAttribute * currAtt = CAttributeMap::operator[](el.first); 120 if (currAtt->isEmpty() && !el.second->isEmpty()) 119 CAttribute * currentAtt = CAttributeMap::operator[](el.first); 120 CAttribute * parentAtt = el.second ; 121 if (apply) 121 122 { 122 this->setAttribute(el.first, el.second); 123 if (currentAtt->isEmpty() && !el.second->isEmpty()) 124 { 125 this->setAttribute(el.first, el.second); 126 } 123 127 } 128 else currentAtt->setInheritedValue(*parentAtt) ; 124 129 } 125 130 }
Note: See TracChangeset
for help on using the changeset viewer.