Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/factory.h
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/factory.h
r9709 r9715 39 39 class Factory : public BaseObject 40 40 { 41 NewObjectListDeclaration(Factory);41 ObjectListDeclaration(Factory); 42 42 public: 43 43 virtual ~Factory (); … … 46 46 47 47 static BaseObject* fabricate(const std::string& className); 48 static BaseObject* fabricate(const NewClassID& classID);48 static BaseObject* fabricate(const ClassID& classID); 49 49 static BaseObject* fabricate(const TiXmlElement* root); 50 50 … … 52 52 bool operator==(int classID) const; 53 53 bool operator==(const std::string& className) const; 54 bool operator==(const NewClassID& classID) const { return _classID == classID; };54 bool operator==(const ClassID& classID) const { return _classID == classID; }; 55 55 56 56 protected: 57 Factory (const NewClassID& id);57 Factory (const ClassID& id); 58 58 virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const = 0; 59 59 … … 62 62 63 63 protected: 64 const NewClassID _classID; //!< The Class-Identifyer of the Factory.64 const ClassID _classID; //!< The Class-Identifyer of the Factory. 65 65 static std::list<Factory*>* _factoryList; //!< List of Registered Factories 66 66 }; … … 78 78 * @param classID the ID of the Class to be created. 79 79 */ 80 tFactory (const NewClassID& classID)80 tFactory (const ClassID& classID) 81 81 : Factory(classID) 82 82 { }
Note: See TracChangeset
for help on using the changeset viewer.