Changeset 623 for XIOS/trunk/src/attribute_map.cpp
- Timestamp:
- 06/22/15 13:36:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute_map.cpp
r591 r623 144 144 } 145 145 146 void CAttributeMap::duplicateAttributes(const CAttributeMap* const srcAttr) 147 { 148 typedef std::pair<StdString, CAttribute*> StdStrAttPair; 149 150 SuperClassMap::const_iterator it = srcAttr->begin(), end = srcAttr->end(); 151 for (; it != end; it++) 152 { 153 const StdStrAttPair& el = *it; 154 if (this->hasAttribute(el.first)) 155 { 156 if (!el.second->isEmpty()) 157 { 158 this->setAttribute(el.first, el.second); 159 } 160 } 161 } 162 } 163 146 164 //--------------------------------------------------------------- 147 165 /*
Note: See TracChangeset
for help on using the changeset viewer.