Changeset 9664 in orxonox.OLD for trunk/src/lib/lang/new_class_id.h
- Timestamp:
- Aug 20, 2006, 7:50:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_class_id.h
r9663 r9664 9 9 10 10 #include "type_info.h" 11 #include <set>12 11 #include <string> 13 12 … … 21 20 ~NewClassID(); 22 21 23 void registerObject(NewObjectListBase* object);22 template<class T> void registerObject(T* object, NewObjectList<T>& list); 24 23 25 24 private: 26 std::string _className; 27 25 NewObjectListBase* _objectList; 28 26 }; 29 27 30 28 29 template<class T> void NewClassID::registerObject(T* object, NewObjectList<T>& objectList) 30 { 31 this->_objectList = &objectList; 32 objectList.registerObject(object); 33 } 34 31 35 #endif /* _NEW_CLASS_ID_H */
Note: See TracChangeset
for help on using the changeset viewer.