Changeset 4744 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jun 30, 2005, 4:53:14 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4742 r4744 63 63 /** 64 64 \brief sets the class identifiers 65 \param id a number for the class from class_ list.h enumeration65 \param id a number for the class from class_id.h enumeration 66 66 \param className the class name 67 67 */ -
orxonox/trunk/src/lib/lang/base_object.h
r4742 r4744 49 49 50 50 private: 51 static void addToClassList(BaseObject* object, ClassID id, const char* className);52 53 private:54 51 const char* className; //!< the name of the class 55 long classID; //!< this is the id from the class_ list.h enumeration52 long classID; //!< this is the id from the class_id.h enumeration 56 53 char* objectName; //!< The name of this object 57 54 58 55 bool finalized; //!< is true if the object is ready to be garbage collected 59 60 // static ClassList* classList;61 56 }; 62 57 -
orxonox/trunk/src/lib/lang/class_list.cc
r4743 r4744 30 30 don't forget to: 31 31 1. Add the new file new_class.cc to the ./src/Makefile.am 32 2. Add the class identifier to ./src/class_ list.h eg. CL_NEW_CLASS32 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 33 33 34 34 Advanced Topics: -
orxonox/trunk/src/lib/lang/class_list.h
r4743 r4744 8 8 #define _CLASS_LIST_H 9 9 10 #include "class_id.h" 11 10 12 // FORWARD DEFINITION 11 13 class BaseObject; 14 template<class T> class tList; 12 15 13 16 … … 20 23 21 24 25 void addToClassList(BaseObject* objectPointer, ClassID classID, const char* className); 22 26 private: 27 static ClassList* first; 28 static ClassList* last; 29 30 int classCount; 31 23 32 24 33 };
Note: See TracChangeset
for help on using the changeset viewer.