Changeset 7209 in orxonox.OLD for branches/std/src/lib/util/loading/factory.h
- Timestamp:
- Mar 10, 2006, 2:20:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/loading/factory.h
r7167 r7209 49 49 static void deleteFactories(); 50 50 51 static BaseObject* fabricate(const char*className);51 static BaseObject* fabricate(const std::string& className); 52 52 static BaseObject* fabricate(ClassID classID); 53 53 static BaseObject* fabricate(const TiXmlElement* root = NULL); … … 56 56 bool operator==(ClassID classID) const; 57 57 bool operator==(const char* className) const; 58 bool operator==(const std::string& className) const; 58 59 59 60 protected: 60 Factory (const char*factoryName, ClassID classID);61 Factory (const std::string& factoryName, ClassID classID); 61 62 virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const = 0; 62 63 63 64 protected: 64 ClassIDclassID; //!< 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. 66 67 static std::list<Factory*>* factoryList; //!< List of Registered Factories 67 68 };
Note: See TracChangeset
for help on using the changeset viewer.