Changeset 1856 for code/trunk/src/core/CoreIncludes.h
- Timestamp:
- Sep 29, 2008, 4:15:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/CoreIncludes.h
r1789 r1856 94 94 95 95 /** 96 @brief Creates the entry in the Factory. 97 @param ClassName The name of the class 98 */ 99 #define CreateFactory(ClassName) \ 100 bool bCreated##ClassName##Factory = orxonox::ClassFactory<ClassName>::create(#ClassName) 101 102 /** 96 103 @brief Returns the Identifier of the given class. 97 104 @param ClassName The name of the class … … 101 108 102 109 /** 103 @brief Creates the entry in the Factory.104 @param ClassNameThe name of the class110 @brief Returns the Identifier with a given name through the factory. 111 @param String The name of the class 105 112 */ 106 #define C reateFactory(ClassName) \107 bool bCreated##ClassName##Factory = orxonox::ClassFactory<ClassName>::create(#ClassName)113 #define ClassByName(String) \ 114 orxonox::Factory::getIdentifier(String) 108 115 109 116 /** 110 @brief Returns the Identifier with either a given name ora given network ID through the factory.111 @param StringOrInt The name or the network ID of the class117 @brief Returns the Identifier with a given network ID through the factory. 118 @param networkID The network ID of the class 112 119 */ 113 #define GetIdentifier(StringOrInt) \114 orxonox::Factory::getIdentifier( StringOrInt)120 #define ClassByID(networkID) \ 121 orxonox::Factory::getIdentifier(networkID) 115 122 116 123 #endif /* _CoreIncludes_H__ */
Note: See TracChangeset
for help on using the changeset viewer.