Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2009, 2:55:34 AM (15 years ago)
Author:
landauf
Message:

Renamed BaseFactory as Factory
Added function ClassByLowercaseString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Identifier.cc

    r5778 r5779  
    372372
    373373    /**
     374        @brief Returns the Identifier with a given name in lowercase.
     375        @param name The name of the wanted Identifier
     376        @return The Identifier
     377    */
     378    Identifier* Identifier::getIdentifierByLowercaseString(const std::string& name)
     379    {
     380        std::map<std::string, Identifier*>::const_iterator it = Identifier::getLowercaseStringIdentifierMapIntern().find(name);
     381        if (it != Identifier::getLowercaseStringIdentifierMapIntern().end())
     382            return it->second;
     383        else
     384            return 0;
     385    }
     386
     387    /**
    374388        @brief Returns the Identifier with a given network ID.
    375389        @param id The network ID of the wanted Identifier
Note: See TracChangeset for help on using the changeset viewer.