Changeset 8858 for code/trunk/src/libraries/core/XMLPort.cc
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/libraries/core/XMLPort.cc
r7163 r8858 64 64 if (!this->sectionname_.empty()) 65 65 { 66 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a valid classname." << std::endl;66 orxout(internal_warning, context::xml) << object->getLoaderIndentation() << "'" << child->Value() << "' is not a valid classname." << endl; 67 67 } 68 68 else … … 74 74 if (!identifier->isA(objectIdentifier_)) 75 75 { 76 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << objectIdentifier_->getName() << "'." << std::endl;76 orxout(internal_warning, context::xml) << object->getLoaderIndentation() << "'" << child->Value() << "' is not a '" << objectIdentifier_->getName() << "'." << endl; 77 77 continue; 78 78 } 79 79 if (!identifier->isLoadable()) 80 80 { 81 COUT(2) << object->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not loadable." << std::endl;81 orxout(internal_warning, context::xml) << object->getLoaderIndentation() << "'" << child->Value() << "' is not loadable." << endl; 82 82 continue; 83 83 } … … 87 87 try 88 88 { 89 COUT(4) << object->getLoaderIndentation() << "fabricating " << child->Value() << "..." << std::endl;89 orxout(verbose, context::xml) << object->getLoaderIndentation() << "fabricating " << child->Value() << "..." << endl; 90 90 91 91 BaseObject* newObject = identifier->fabricate(object); … … 95 95 { 96 96 newObject->XMLPort(*child, XMLPort::LoadObject); 97 COUT(4) << object->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << this->identifier_->getName() << " (objectname " << static_cast<BaseObject*>(object)->getName() << ')' << std::endl;97 orxout(verbose, context::xml) << object->getLoaderIndentation() << "assigning " << child->Value() << " (objectname " << newObject->getName() << ") to " << this->identifier_->getName() << " (objectname " << static_cast<BaseObject*>(object)->getName() << ')' << endl; 98 98 } 99 99 else 100 100 { 101 COUT(4) << object->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << this->identifier_->getName() << " (objectname " << static_cast<BaseObject*>(object)->getName() << ')' << std::endl;101 orxout(verbose, context::xml) << object->getLoaderIndentation() << "assigning " << child->Value() << " (object not yet loaded) to " << this->identifier_->getName() << " (objectname " << static_cast<BaseObject*>(object)->getName() << ')' << endl; 102 102 } 103 104 COUT(5) << object->getLoaderIndentation();105 103 106 104 this->callLoadExecutor(object, newObject); … … 109 107 newObject->XMLPort(*child, XMLPort::LoadObject); 110 108 111 COUT(5) << object->getLoaderIndentation() << "...fabricated " << child->Value() << " (objectname " << newObject->getName() << ")." << std::endl;109 orxout(verbose, context::xml) << object->getLoaderIndentation() << "fabricated " << child->Value() << " (objectname " << newObject->getName() << ")." << endl; 112 110 } 113 111 catch (AbortLoadingException& ex) 114 112 { 115 COUT(1) << "An error occurred while loading object, abort loading..." << std::endl;113 orxout(internal_error, context::xml) << "An error occurred while loading object, abort loading..." << endl; 116 114 throw ex; 117 115 } 118 116 catch (...) 119 117 { 120 COUT(1) << "An error occurred while loading object:" << std::endl;121 COUT(1) << Exception::handleMessage() << std::endl;118 orxout(internal_error, context::xml) << "An error occurred while loading object:" << endl; 119 orxout(internal_error, context::xml) << Exception::handleMessage() << endl; 122 120 } 123 121 } … … 125 123 catch (ticpp::Exception& ex) 126 124 { 127 COUT(1) << std::endl;128 COUT(1) << "An error occurred in XMLPort.h while loading a '" << objectIdentifier_->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << object->getName() << ") in " << object->getFilename() << ':' << std::endl;129 COUT(1) << ex.what() << std::endl;125 orxout(internal_error, context::xml) << endl; 126 orxout(internal_error, context::xml) << "An error occurred in XMLPort.h while loading a '" << objectIdentifier_->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << object->getName() << ") in " << object->getFilename() << ':' << endl; 127 orxout(internal_error, context::xml) << ex.what() << endl; 130 128 } 131 129 }
Note: See TracChangeset
for help on using the changeset viewer.