Changeset 445 for XIOS/trunk/src/node/context.cpp
- Timestamp:
- 06/19/13 10:09:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r430 r445 245 245 //---------------------------------------------------------------- 246 246 247 void CContext::solveDescInheritance( const CAttributeMap * const UNUSED(parent))247 void CContext::solveDescInheritance(bool apply, const CAttributeMap * const UNUSED(parent)) 248 248 { 249 249 #define DECLARE_NODE(Name_, name_) \ 250 250 if (C##Name_##Definition::has(C##Name_##Definition::GetDefName())) \ 251 C##Name_##Definition::get(C##Name_##Definition::GetDefName())->solveDescInheritance( );251 C##Name_##Definition::get(C##Name_##Definition::GetDefName())->solveDescInheritance(apply); 252 252 #define DECLARE_NODE_PAR(Name_, name_) 253 253 #include "node_type.conf" … … 268 268 //---------------------------------------------------------------- 269 269 270 void CContext::solveFieldRefInheritance( void)270 void CContext::solveFieldRefInheritance(bool apply) 271 271 { 272 272 if (!this->hasId()) return; … … 279 279 { 280 280 CField* field = *it; 281 field->solveRefInheritance( );281 field->solveRefInheritance(apply); 282 282 } 283 283 } … … 370 370 } 371 371 372 void CContext::solveAllInheritance( void)372 void CContext::solveAllInheritance(bool apply) 373 373 { 374 374 // Résolution des héritages descendants (cà d des héritages de groupes) 375 375 // pour chacun des contextes. 376 solveDescInheritance( );376 solveDescInheritance(apply); 377 377 378 378 // Résolution des héritages par référence au niveau des fichiers. … … 380 380 381 381 for (unsigned int i = 0; i < allFiles.size(); i++) 382 allFiles[i]->solveFieldRefInheritance( );382 allFiles[i]->solveFieldRefInheritance(apply); 383 383 } 384 384
Note: See TracChangeset
for help on using the changeset viewer.