Changeset 8858 for code/trunk/src/libraries/core/Template.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/Template.cc
r7163 r8858 32 32 #include <tinyxml/ticpp.h> 33 33 34 #include "util/ Debug.h"34 #include "util/Output.h" 35 35 #include "CoreIncludes.h" 36 36 #include "XMLPort.h" … … 88 88 it = Template::getTemplateMap().find(this->getName()); 89 89 if (it != Template::getTemplateMap().end()) 90 COUT(2) << "Warning: Template with name \"" << this->getName() << "\" already exists." << std::endl;90 orxout(internal_warning, context::templates) << "Template with name \"" << this->getName() << "\" already exists." << endl; 91 91 else 92 92 Template::getTemplateMap()[this->getName()] = this; … … 117 117 else 118 118 { 119 COUT(2) << "Warning: Linking from " << this->getName() << " to " << this->link_ << " leads to an infinite loop. Returning own element." << std::endl;119 orxout(internal_warning, context::templates) << "Linking from \"" << this->getName() << "\" to \"" << this->link_ << "\" leads to an infinite loop. Returning own element." << endl; 120 120 } 121 121 } 122 122 else 123 123 { 124 COUT(2) << "Warning: " << this->link_ << " is not an existing Template name. Returning own element." << std::endl;124 orxout(internal_warning, context::templates) << '"' << this->link_ << "\" is not an existing Template name. Returning own element." << endl; 125 125 } 126 126 } … … 142 142 if (!object->isA(this->baseclassIdentifier_)) 143 143 { 144 COUT(1) << "Error: Can't apply template (name: " << this->getName() << "), object (name: " << object->getName() << ", class: " << object->getIdentifier()->getName() << ") is not a " << this->baseclassIdentifier_->getName() << std::endl;144 orxout(internal_error, context::templates) << "Can't apply template (name: " << this->getName() << "), object (name: " << object->getName() << ", class: " << object->getIdentifier()->getName() << ") is not a " << this->baseclassIdentifier_->getName() << endl; 145 145 return; 146 146 } 147 147 } 148 148 149 COUT(4) << object->getLoaderIndentation() << " aplying Template \"" << this->getName() << "\"..." << std::endl;149 orxout(verbose, context::templates) << object->getLoaderIndentation() << " aplying Template \"" << this->getName() << "\"..." << endl; 150 150 151 151 Element temp = &const_cast<TiXmlElement&>(this->getXMLElement()); … … 170 170 else 171 171 { 172 COUT(2) << "Warning: Template with name " << name << " doesn't exist." << std::endl;172 orxout(internal_warning, context::templates) << "Template with name " << name << " doesn't exist." << endl; 173 173 return 0; 174 174 }
Note: See TracChangeset
for help on using the changeset viewer.