Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 941 for code/branches


Ignore:
Timestamp:
Mar 27, 2008, 8:23:10 PM (17 years ago)
Author:
landauf
Message:
  • small change in the initialization of the Identifier-singleton
  • fixed debug output when removing objects
Location:
code/branches/core2/src/orxonox/core
Files:
2 edited

Legend:

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

    r876 r941  
    273273    ClassIdentifier<T>* ClassIdentifier<T>::registerClass(std::set<const Identifier*>* parents, const std::string& name, bool bRootClass)
    274274    {
    275         COUT(5) << "*** ClassIdentifier: Register Class in " << name << "-Singleton." << std::endl;
     275        this->setName(name);
    276276
    277277        // Check if at least one object of the given type was created
    278         if (!this->bCreatedOneObject_)
     278        if (!this->bCreatedOneObject_ && Identifier::isCreatingHierarchy())
    279279        {
    280280            // If no: We have to store the informations and initialize the Identifier
    281             this->setName(name);
    282 
    283281            COUT(4) << "*** ClassIdentifier: Register Class in " << name << "-Singleton -> Initialize Singleton." << std::endl;
    284282            if (bRootClass)
  • code/branches/core2/src/orxonox/core/MetaObjectList.h

    r871 r941  
    9999
    100100
    101         COUT(5) << "*** MetaObjectList: Removing Object from " << this->element_->object_->getIdentifier()->getName() << "-list." << std::endl;
     101        COUT(5) << "*** MetaObjectList: Removing Object from " << ClassManager<T>::getIdentifier()->getName() << "-list." << std::endl;
    102102        delete this->element_;
    103103    }
Note: See TracChangeset for help on using the changeset viewer.