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/ClassFactory.h

    r805 r811  
    7272    bool ClassFactory<T>::create(const std::string& name)
    7373    {
    74         COUT(4) << "*** Create entry for " << name << " in Factory." << std::endl;
    75         ClassManager<T>::getIdentifier(name)->addFactory(new ClassFactory<T>);
    76         Factory::add(name, ClassManager<T>::getIdentifier(name));
     74        COUT(4) << "*** ClassFactory: Create entry for " << name << " in Factory." << std::endl;
     75        ClassManager<T>::getIdentifier()->addFactory(new ClassFactory<T>);
     76        Factory::add(name, ClassManager<T>::getIdentifier());
    7777
    7878        return true;
Note: See TracChangeset for help on using the changeset viewer.