Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2008, 6:39:53 PM (16 years ago)
Author:
landauf
Message:
  • Changed the ClassManager/IdentifierDistributor: ClassIdentifiers are now saved with the name returned by typeid(class).name() because this is a simple way getting the name without creating an object (which might be impossible because of non-public constructors or abstract functions).
  • Changed some debug outputs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/CoreIncludes.h

    r805 r811  
    5858*/
    5959#define InternRegisterObject(ClassName, bRootClass) \
    60     this->setIdentifier(orxonox::ClassManager<ClassName>::getIdentifier(#ClassName)->registerClass(this->getParents(), #ClassName, bRootClass)); \
     60    this->setIdentifier(orxonox::ClassManager<ClassName>::getIdentifier()->registerClass(this->getParents(), #ClassName, bRootClass)); \
    6161    if (orxonox::Identifier::isCreatingHierarchy() && this->getParents()) \
    6262        this->getParents()->add(this->getIdentifier()); \
    63     orxonox::ClassManager<ClassName>::getIdentifier(#ClassName)->addObject(this)
     63    orxonox::ClassManager<ClassName>::getIdentifier()->addObject(this)
    6464
    6565/**
     
    112112*/
    113113#define Class(ClassName) \
    114     ClassManager<ClassName>::getIdentifier(#ClassName)
     114    ClassManager<ClassName>::getIdentifier()
    115115
    116116/**
Note: See TracChangeset for help on using the changeset viewer.