Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7209 in orxonox.OLD for branches/std/src/lib/util/loading/factory.h


Ignore:
Timestamp:
Mar 10, 2006, 2:20:08 AM (19 years ago)
Author:
bensch
Message:

orxonox/std: even less evil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/util/loading/factory.h

    r7167 r7209  
    4949  static void deleteFactories();
    5050
    51   static  BaseObject* fabricate(const char* className);
     51  static  BaseObject* fabricate(const std::string& className);
    5252  static  BaseObject* fabricate(ClassID classID);
    5353  static  BaseObject* fabricate(const TiXmlElement* root = NULL);
     
    5656  bool operator==(ClassID classID) const;
    5757  bool operator==(const char* className) const;
     58  bool operator==(const std::string& className) const;
    5859
    5960  protected:
    60     Factory (const char* factoryName, ClassID classID);
     61    Factory (const std::string& factoryName, ClassID classID);
    6162    virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const = 0;
    6263
    6364  protected:
    64     ClassID                       classID;              //!< The Class-Identifyer of the Factory.
    65     const char*                   className;            //!< The name of the Class.
     65    const ClassID                 classID;              //!< The Class-Identifyer of the Factory.
     66    const std::string             className;            //!< The name of the Class.
    6667    static std::list<Factory*>*   factoryList;          //!< List of Registered Factories
    6768};
Note: See TracChangeset for help on using the changeset viewer.