Changeset 4836 in orxonox.OLD for orxonox/trunk/src/util/loading/factory.h
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/factory.h
r4746 r4836 33 33 Creates a factory to a Loadable Class. 34 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)35 @todo make factoryName a BaseObject-parameter. (else it would be redundant) 36 36 */ 37 37 #define CREATE_FACTORY(CLASS_NAME) tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME) … … 48 48 49 49 static void registerFactory( Factory* factory); 50 /** \brief sets the Next factory in the list \param nextFactory the next factory */50 /** \brief sets the Next factory in the list @param nextFactory the next factory */ 51 51 inline void setNext( Factory* nextFactory) { this->next = nextFactory; }; 52 /** \returns the first factory */52 /** @returns the first factory */ 53 53 static Factory* getFirst() { return Factory::first; }; 54 /** \returns the next factory */54 /** @returns the next factory */ 55 55 Factory* getNext() const { return this->next; }; 56 56 … … 64 64 65 65 /** 66 \briefa factory that is able to load any kind of Object66 * a factory that is able to load any kind of Object 67 67 (this is a Functor) 68 68 */ … … 78 78 79 79 /** 80 \briefconstrunts a factory with81 \param factoryName the name of the factory80 * construnts a factory with 81 * @param factoryName the name of the factory 82 82 */ 83 83 template<class T>
Note: See TracChangeset
for help on using the changeset viewer.