Changeset 9635 for code/branches/core6/src/libraries/core/CoreIncludes.h
- Timestamp:
- Aug 11, 2013, 2:38:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/CoreIncludes.h
r9567 r9635 113 113 114 114 /** 115 @brief Creates the Factory.115 @brief Creates and registers the Factory. 116 116 @param ClassName The name of the class 117 117 */ 118 118 #define CreateFactory(ClassName) \ 119 Factory* _##ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, true)119 RegisterFactory(ClassName, new orxonox::ClassFactoryWithContext<ClassName>(#ClassName, true)) 120 120 121 121 /** 122 @brief Creates the Factory for classes which should not be loaded through XML.122 @brief Creates and registers the Factory for classes which should not be loaded through XML. 123 123 @param ClassName The name of the class 124 124 */ 125 125 #define CreateUnloadableFactory(ClassName) \ 126 Factory* _##ClassName##Factory = new orxonox::ClassFactory<ClassName>(#ClassName, false) 126 RegisterFactory(ClassName, new orxonox::ClassFactoryWithContext<ClassName>(#ClassName, false)) 127 128 /** 129 @brief Registers a given Factory. 130 @param ClassName The name of the class 131 */ 132 #define RegisterFactory(ClassName, FactoryInstance) \ 133 Factory* _##ClassName##Factory = FactoryInstance 127 134 128 135 /**
Note: See TracChangeset
for help on using the changeset viewer.