Changeset 1787 for code/trunk/src/core
- Timestamp:
- Sep 15, 2008, 11:19:54 AM (16 years ago)
- Location:
- code/trunk/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/CoreIncludes.h
r1755 r1787 97 97 @param ClassName The name of the class 98 98 */ 99 #define Class(ClassName) \99 #define GetClassIdentifier(ClassName) \ 100 100 ClassIdentifier<ClassName>::getIdentifier() 101 101 -
code/trunk/src/core/XMLPort.cc
r1505 r1787 40 40 bool XMLPortObjectContainer::identifierIsIncludedInLoaderMask(const Identifier* identifier) 41 41 { 42 return ((!this->bApplyLoaderMask_) || identifier->isA( Class(Namespace)) || Loader::currentMask_s.isIncluded(identifier));42 return ((!this->bApplyLoaderMask_) || identifier->isA(GetClassIdentifier(Namespace)) || Loader::currentMask_s.isIncluded(identifier)); 43 43 } 44 44 } -
code/trunk/src/core/XMLPort.h
r1755 r1787 301 301 if (identifier) 302 302 { 303 if (identifier->isA( Class(O)))303 if (identifier->isA(GetClassIdentifier(O))) 304 304 { 305 305 if (this->identifierIsIncludedInLoaderMask(identifier)) … … 333 333 else 334 334 { 335 COUT(2) << ((BaseObject*)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 '" << GetClassIdentifier(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 '" << this->identifier_->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl;348 COUT(1) << "An error occurred in XMLPort.h while loading a '" << GetClassIdentifier(O)->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->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.