Changeset 5778 for code/branches/core5/src/libraries/core/ClassFactory.h
- Timestamp:
- Sep 24, 2009, 2:47:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/ClassFactory.h
r5777 r5778 42 42 43 43 #include "util/Debug.h" 44 #include "Factory.h"45 44 #include "Identifier.h" 46 45 … … 71 70 72 71 /** 73 @brief Adds the ClassFactory to the Identifier of the same type and the Identifier to the Factory.72 @brief Adds the ClassFactory to the Identifier of the same type. 74 73 @param name The name of the class 75 74 @param bLoadable True if the class can be loaded through XML 76 @return Always true (this is needed because the compiler only allows assignments before main())77 75 */ 78 76 template <class T> … … 82 80 ClassIdentifier<T>::getIdentifier(name)->addFactory(this); 83 81 ClassIdentifier<T>::getIdentifier()->setLoadable(bLoadable); 84 Factory::add(name, ClassIdentifier<T>::getIdentifier());85 82 } 86 83
Note: See TracChangeset
for help on using the changeset viewer.