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

    r5778 r5779  
    8080*/
    8181#define CreateFactory(ClassName) \
    82     BaseFactory* ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, true)
     82    Factory* _##ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, true)
    8383
    8484/**
     
    8787*/
    8888#define CreateUnloadableFactory(ClassName) \
    89     BaseFactory* ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, false)
     89    Factory* _##ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, false)
    9090
    9191/**
     
    100100{
    101101    /**
    102         @brief Returns the Identifier with a given name through the factory.
     102        @brief Returns the Identifier with a given name.
    103103        @param String The name of the class
    104104    */
     
    109109
    110110    /**
    111         @brief Returns the Identifier with a given network ID through the factory.
     111        @brief Returns the Identifier with a given lowercase name.
     112        @param String The lowercase name of the class
     113    */
     114    inline Identifier* ClassByLowercaseString(const std::string& name)
     115    {
     116        return Identifier::getIdentifierByLowercaseString(name);
     117    }
     118
     119    /**
     120        @brief Returns the Identifier with a given network ID.
    112121        @param networkID The network ID of the class
    113122    */
Note: See TracChangeset for help on using the changeset viewer.