Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9664 in orxonox.OLD for trunk/src/lib/lang/new_class_id.h


Ignore:
Timestamp:
Aug 20, 2006, 7:50:38 PM (18 years ago)
Author:
bensch
Message:

some more thoughts… but it looks like a hard one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_class_id.h

    r9663 r9664  
    99
    1010#include "type_info.h"
    11 #include <set>
    1211#include <string>
    1312
     
    2120  ~NewClassID();
    2221
    23   void registerObject(NewObjectListBase* object);
     22  template<class T> void registerObject(T* object, NewObjectList<T>& list);
    2423
    2524private:
    26   std::string                   _className;
    27 
     25  NewObjectListBase*            _objectList;
    2826};
    2927
    3028
     29template<class T> void NewClassID::registerObject(T* object, NewObjectList<T>& objectList)
     30{
     31  this->_objectList = &objectList;
     32  objectList.registerObject(object);
     33}
     34
    3135#endif /* _NEW_CLASS_ID_H */
Note: See TracChangeset for help on using the changeset viewer.