Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2007, 4:59:55 AM (18 years ago)
Author:
landauf
Message:

IdentifierMap works now on tardis (this pre-main() stuff is s* and ! f* !)

File:
1 edited

Legend:

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

    r694 r696  
    137137                { this->configValues_[varname] = container; }
    138138
     139            std::map<std::string, Identifier*>& getIdentifierMap();
     140
    139141        private:
    140142            Identifier();
     
    172174            unsigned int classID_;                                      //!< The network ID to identify a class through the network
    173175            std::map<std::string, ConfigValueContainer*> configValues_; //!< A map to link the string of configurable variables with their ConfigValueContainer
    174             static std::map<std::string, Identifier*> identifierMap_s;  //!< A map, containing all existing ClassIdentifiers
    175176    };
    176177
     
    282283        {
    283284            this->name_ = name;
    284             this->identifierMap_s[name] = this;
     285            this->getIdentifierMap().insert(std::pair<std::string, Identifier*>(name, this));
    285286            this->bSetName_ = true;
    286287        }
Note: See TracChangeset for help on using the changeset viewer.