Changeset 2173 for code/branches/objecthierarchy2/src/core/XMLPort.h
- Timestamp:
- Nov 10, 2008, 2:06:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/core/XMLPort.h
r2171 r2173 336 336 this->parseParams_.mode = mode; 337 337 338 if ( mode == XMLPort::LoadObject)338 if ((mode == XMLPort::LoadObject) || (mode == XMLPort::ExpandObject)) 339 339 { 340 340 try 341 341 { 342 342 std::string attribute = xmlelement.GetAttribute(this->paramname_); 343 if ((attribute.size() > 0) || ( this->loadexecutor_->allDefaultValuesSet()))343 if ((attribute.size() > 0) || ((mode != XMLPort::ExpandObject) && this->loadexecutor_->allDefaultValuesSet())) 344 344 { 345 345 COUT(5) << this->owner_->getLoaderIndentation() << "Loading parameter " << this->paramname_ << " in " << this->identifier_->getName() << " (objectname " << this->owner_->getName() << ")." << std::endl << this->owner_->getLoaderIndentation(); 346 if (this->loadexecutor_->parse(object, attribute, ",") )346 if (this->loadexecutor_->parse(object, attribute, ",") || (mode == XMLPort::ExpandObject)) 347 347 this->parseResult_ = PR_finished; 348 348 else 349 349 this->parseResult_ = PR_waiting_for_default_values; 350 350 } 351 else if (mode == XMLPort::ExpandObject) 352 this->parseResult_ = PR_finished; 351 353 else 352 354 this->parseResult_ = PR_waiting_for_default_values; … … 473 475 XMLPortObjectContainer& port(T* object, Element& xmlelement, XMLPort::Mode mode) 474 476 { 475 if ( mode == XMLPort::LoadObject)477 if ((mode == XMLPort::LoadObject) || (mode == XMLPort::ExpandObject)) 476 478 { 477 479 try
Note: See TracChangeset
for help on using the changeset viewer.