Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1789 for code/trunk/src/core


Ignore:
Timestamp:
Sep 15, 2008, 9:31:55 PM (16 years ago)
Author:
rgrieder
Message:

reverted r1787

Location:
code/trunk/src/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/CoreIncludes.h

    r1787 r1789  
    9797    @param ClassName The name of the class
    9898*/
    99 #define GetClassIdentifier(ClassName) \
     99#define Class(ClassName) \
    100100    ClassIdentifier<ClassName>::getIdentifier()
    101101
  • code/trunk/src/core/XMLPort.cc

    r1787 r1789  
    4040    bool XMLPortObjectContainer::identifierIsIncludedInLoaderMask(const Identifier* identifier)
    4141    {
    42         return ((!this->bApplyLoaderMask_) || identifier->isA(GetClassIdentifier(Namespace)) || Loader::currentMask_s.isIncluded(identifier));
     42        return ((!this->bApplyLoaderMask_) || identifier->isA(Class(Namespace)) || Loader::currentMask_s.isIncluded(identifier));
    4343    }
    4444}
  • code/trunk/src/core/XMLPort.h

    r1787 r1789  
    301301                                if (identifier)
    302302                                {
    303                                     if (identifier->isA(GetClassIdentifier(O)))
     303                                    if (identifier->isA(Class(O)))
    304304                                    {
    305305                                        if (this->identifierIsIncludedInLoaderMask(identifier))
     
    333333                                    else
    334334                                    {
    335                                         COUT(2) << ((BaseObject*)object)->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << GetClassIdentifier(O)->getName() << "'." << std::endl;
     335                                        COUT(2) << ((BaseObject*)object)->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << Class(O)->getName() << "'." << std::endl;
    336336                                    }
    337337                                }
     
    346346                    {
    347347                        COUT(1) << 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;
     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;
    349349                        COUT(1) << ex.what() << std::endl;
    350350                    }
Note: See TracChangeset for help on using the changeset viewer.