Changeset 1057 for code/trunk/src/core
- Timestamp:
- Apr 14, 2008, 1:09:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/XMLPort.h
r1056 r1057 158 158 if ((attribute.size() > 0) || (this->loadexecutor_->allDefaultValuesSet())) 159 159 { 160 COUT(5) << object->getLoaderIndentation() << "Loading parameter " << this->paramname_ << " in " << object->getIdentifier()->getName() << " (objectname " << object->getName() << ")." << std::endl << object->getLoaderIndentation();160 COUT(5) << ((BaseObject*)object)->getLoaderIndentation() << "Loading parameter " << this->paramname_ << " in " << object->getIdentifier()->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")." << std::endl << ((BaseObject*)object)->getLoaderIndentation(); 161 161 if (this->loadexecutor_->parse(object, attribute, ",")) 162 162 this->parseResult_ = PR_finished; … … 168 168 { 169 169 COUT(1) << std::endl; 170 COUT(1) << "An error occurred in XMLPort.h while loading attribute '" << this->paramname_ << "' of '" << object->getIdentifier()->getName() << "' (objectname: " << object->getName() << ") in " << object->getLevelfile() << ":" << std::endl;170 COUT(1) << "An error occurred in XMLPort.h while loading attribute '" << this->paramname_ << "' of '" << object->getIdentifier()->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << ((BaseObject*)object)->getLevelfile() << ":" << std::endl; 171 171 COUT(1) << ex.what() << std::endl; 172 172 } … … 305 305 if (this->identifierIsIncludedInLoaderMask(identifier)) 306 306 { 307 COUT(4) << object->getLoaderIndentation() << "fabricating " << child->Value() << "..." << std::endl;308 309 O* newObject = (O*)identifier->fabricate();310 newObject->setLoaderIndentation( object->getLoaderIndentation() + " ");311 newObject->setLevel( object->getLevel());312 newObject->setNamespace( object->getNamespace());307 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "fabricating " << child->Value() << "..." << std::endl; 308 309 BaseObject* newObject = identifier->fabricate(); 310 newObject->setLoaderIndentation(((BaseObject*)object)->getLoaderIndentation() + " "); 311 newObject->setLevel(((BaseObject*)object)->getLevel()); 312 newObject->setNamespace(((BaseObject*)object)->getNamespace()); 313 313 314 314 if (this->bLoadBefore_) 315 315 { 316 316 newObject->XMLPort(*child, XMLPort::LoadObject); 317 COUT(4) << object->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << object->getIdentifier()->getName() << " (objectname " << object->getName() << ")" << std::endl;317 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << object->getIdentifier()->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl; 318 318 } 319 319 else 320 320 { 321 COUT(4) << object->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << object->getIdentifier()->getName() << " (objectname " << object->getName() << ")" << std::endl;321 COUT(4) << ((BaseObject*)object)->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << object->getIdentifier()->getName() << " (objectname " << ((BaseObject*)object)->getName() << ")" << std::endl; 322 322 } 323 323 324 COUT(5) << object->getLoaderIndentation();324 COUT(5) << ((BaseObject*)object)->getLoaderIndentation(); 325 325 (*this->loadexecutor_)(object, newObject); 326 326 … … 328 328 newObject->XMLPort(*child, XMLPort::LoadObject); 329 329 330 COUT(5) << object->getLoaderIndentation() << "...fabricated " << child->Value() << " (objectname " << newObject->getName() << ")." << std::endl;330 COUT(5) << ((BaseObject*)object)->getLoaderIndentation() << "...fabricated " << child->Value() << " (objectname " << newObject->getName() << ")." << std::endl; 331 331 } 332 332 } 333 333 else 334 334 { 335 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << Class(O)->getName() << "'." << std::endl;335 COUT(2) << ((BaseObject*)object)->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << Class(O)->getName() << "'." << std::endl; 336 336 } 337 337 } … … 346 346 { 347 347 COUT(1) << std::endl; 348 COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class(O)->getName() << "' in '" << this->sectionname_ << "' of '" << object->getIdentifier()->getName() << "' (objectname: " << object->getName() << ") in " << object->getLevelfile() << ":" << std::endl;348 COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class(O)->getName() << "' in '" << this->sectionname_ << "' of '" << object->getIdentifier()->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl; 349 349 COUT(1) << ex.what() << std::endl; 350 350 }
Note: See TracChangeset
for help on using the changeset viewer.