Changeset 7167 in orxonox.OLD for trunk/src/util/loading/factory.h
- Timestamp:
- Feb 19, 2006, 3:18:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/factory.h
r6341 r7167 38 38 tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME, CLASS_ID) 39 39 40 // #define CREATE_DYNAMIC_FACTORY(CLASS_NAME, CLASS_ID) \ 41 // tFactory<CLASS_NAME>* global_##CLASS_NAME##_Dynamic_Factory = new DynamicLoader<CLASS_NAME>(#CLASS_NAME, CLASS_ID) 42 40 43 //! The Factory is a loadable object handler 41 44 class Factory : public BaseObject { 42 45 43 46 public: 44 Factory (const char* factoryName, ClassID classID);45 47 virtual ~Factory (); 46 48 … … 56 58 57 59 protected: 60 Factory (const char* factoryName, ClassID classID); 58 61 virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const = 0; 59 62
Note: See TracChangeset
for help on using the changeset viewer.