Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2008, 4:43:22 PM (16 years ago)
Author:
landauf
Message:

cleanup

File:
1 edited

Legend:

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

    r805 r806  
    106106            bool isParentOf(const Identifier* identifier) const;
    107107
    108 //            static std::map<std::string, Identifier*>& getIdentifierMap();
    109 
    110108            /** @brief Removes all objects of the corresponding class. */
    111109            virtual void removeObjects() const = 0;
     
    192190            ClassIdentifier<T>* registerClass(const IdentifierList* parents, const std::string& name, bool bRootClass);
    193191            void addObject(T* object);
    194 //            static ClassIdentifier<T>* getIdentifier();
    195192            void removeObjects() const;
    196193            void setName(const std::string& name);
     
    244241
    245242    /**
    246         @brief Creates the only instance of this class for the template class T.
    247         @return The Identifier itself
    248     *//*
    249     template <class T>
    250     ClassIdentifier<T>* ClassIdentifier<T>::getIdentifier()
    251     {
    252         static ClassIdentifier<T> theOneAndOnlyInstance = ClassIdentifier<T>();
    253         static bool bIdentifierCreated = false;
    254 
    255         if (!bIdentifierCreated)
    256         {
    257             COUT(4) << "*** Create Identifier Singleton." << std::endl;
    258             bIdentifierCreated = true;
    259         }
    260 
    261         return &theOneAndOnlyInstance;
    262     }
    263 */
    264     /**
    265243        @brief Sets the name of the class.
    266244        @param name The name
     
    269247    void ClassIdentifier<T>::setName(const std::string& name)
    270248    {
    271 //        // Make sure we didn't already set the name, to avoid duplicate entries in the Identifier map
    272249        if (!this->bSetName_)
    273250        {
    274251            this->name_ = name;
    275 //            this->getIdentifierMap().insert(std::pair<std::string, Identifier*>(name, this));
    276252            this->bSetName_ = true;
    277253        }
Note: See TracChangeset for help on using the changeset viewer.