Changeset 4878 in orxonox.OLD for orxonox/branches/weaponSystem/src/util/loading
- Timestamp:
- Jul 17, 2005, 12:37:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/weaponSystem/src/util/loading/factory.h
r4836 r4878 15 15 16 16 /*! 17 \file factory.h18 \brief A loadable object handler17 * @file factory.h 18 * @brief A loadable object handler 19 19 */ 20 20 … … 31 31 32 32 /** 33 Creates a factory to a Loadable Class. 34 this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 35 @todo make factoryName a BaseObject-parameter. (else it would be redundant) 33 * Creates a factory to a Loadable Class. 34 * this should be used at the beginning of all the Classes that should be loadable (in the cc-file) 36 35 */ 37 #define CREATE_FACTORY(CLASS_NAME) tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) 36 #define CREATE_FACTORY(CLASS_NAME) \ 37 tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) 38 38 39 39 //! The Factory is a loadable object handler … … 48 48 49 49 static void registerFactory( Factory* factory); 50 /** \briefsets the Next factory in the list @param nextFactory the next factory */50 /** sets the Next factory in the list @param nextFactory the next factory */ 51 51 inline void setNext( Factory* nextFactory) { this->next = nextFactory; }; 52 52 /** @returns the first factory */ … … 54 54 /** @returns the next factory */ 55 55 Factory* getNext() const { return this->next; }; 56 57 58 private:59 56 60 57 private:
Note: See TracChangeset
for help on using the changeset viewer.