Changeset 6278 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Dec 24, 2005, 7:14:06 PM (19 years ago)
- Location:
- trunk/src/lib/lang
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/base_object.cc
r6276 r6278 79 79 this->className = className; 80 80 81 ClassList::addToClassList(this, classID, className);82 } 83 84 /** 85 \brief set the name of the Object81 ClassList::addToClassList(this, classID, this->classID, className); 82 } 83 84 /** 85 * @briefbrief set the name of the Object 86 86 */ 87 87 void BaseObject::setName (const char* objectName) -
trunk/src/lib/lang/class_list.cc
r6077 r6278 37 37 * Creates a new ClassList 38 38 */ 39 ClassList::ClassList(ClassID classID, const char* className)39 ClassList::ClassList(ClassID classID, unsigned long classIDFull, const char* className) 40 40 { 41 41 this->className = className; 42 42 this->classID = classID; 43 this->classIDFull = classIDFull; 43 44 } 44 45 … … 66 67 * !! Before unsing the ClassList, as it creates the ClassLits 67 68 */ 68 void ClassList::addToClassList(BaseObject* objectPointer, ClassID classID, const char* className)69 void ClassList::addToClassList(BaseObject* objectPointer, ClassID classID, unsigned long classIDFull, const char* className) 69 70 { 70 71 if (unlikely(classList == NULL)) … … 78 79 else 79 80 { 80 ClassList::classList->push_back(ClassList(classID, class Name));81 ClassList::classList->push_back(ClassList(classID, classIDFull, className)); 81 82 ClassList::classList->back().objectList.push_back(objectPointer); 82 83 } -
trunk/src/lib/lang/class_list.h
r6077 r6278 31 31 */ 32 32 class ClassList { 33 34 33 public: 35 ClassList(ClassID classID, const char* className);34 ClassList(ClassID classID, unsigned long classIDFull, const char* className); 36 35 virtual ~ClassList(); 37 36 38 / / STATIC FUNCTIONS39 static void addToClassList(BaseObject* objectPointer, ClassID classID, const char* className);37 /* MAINTENANCE FUNCTIONS THESE ARE !!ONLY FOR BASEOBJECT !! */ 38 static void addToClassList(BaseObject* objectPointer, ClassID classID, unsigned long classIDFull, const char* className); 40 39 static void removeFromClassList(BaseObject* objectPointer); 40 41 41 42 42 43 static const std::list<BaseObject*>* getList(ClassID classID = CL_NULL);// { return (ClassList* fl = ClassList::getClassList(classID) != NULL)? &(fl->objectList) : NULL; }; … … 59 60 60 61 private: 61 62 62 static ClassList* getClassList(ClassID classID); 63 63 static ClassList* getClassList(const char* className); 64 64 65 65 private: 66 ClassID classID; //!< ClassID stored in this ClassList 67 unsigned long classIDFull; //!< The Full ClassID of this Class. 66 68 67 ClassID classID; //!< ClassID stored in this ClassList68 69 const char* className; //!< Name of the Class Stored here 69 70
Note: See TracChangeset
for help on using the changeset viewer.