Changeset 4742 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- Jun 30, 2005, 4:38:33 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4596 r4742 68 68 void BaseObject::setClassID(long classID, const char* className) 69 69 { 70 this->setClassID(classID);71 this->setClassName(className);72 }73 74 75 /**76 \brief sets the class identifier77 \param id a number for the class from class_list.h enumeration78 */79 void BaseObject::setClassID (long classID)80 {81 70 this->classID |= classID; 82 }83 84 85 /**86 \brief sets the class identifiers87 \param className the class name88 */89 void BaseObject::setClassName(const char* className)90 {91 71 this->className = className; 92 72 } … … 95 75 \brief set the name of the Object 96 76 */ 97 77 void BaseObject::setName (const char* objectName) 98 78 { 99 79 if (this->objectName) -
orxonox/trunk/src/lib/lang/base_object.h
r4595 r4742 4 4 5 5 This is a global handler for all classes. 6 7 \todo isA()8 6 */ 9 7 … … 12 10 #define _BASE_OBJECT_H 13 11 14 #include "class_ list.h"12 #include "class_id.h" 15 13 #ifndef NULL 16 14 #define NULL 0x0 //!< NULL … … 45 43 46 44 protected: 47 void setClassID(long classID);48 void setClassName(const char* className);49 45 void setClassID(long classID, const char* className); 50 46 … … 52 48 void finalize(void) { this->finalized = true; }; 53 49 54 private: 55 const char* className; //!< the name of the class 56 long classID; //!< this is the id from the class_list.h enumeration 57 char* objectName; //!< The name of this object 50 private: 51 static void addToClassList(BaseObject* object, ClassID id, const char* className); 58 52 59 bool finalized; //!< is true if the object is ready to be garbage collected 53 private: 54 const char* className; //!< the name of the class 55 long classID; //!< this is the id from the class_list.h enumeration 56 char* objectName; //!< The name of this object 57 58 bool finalized; //!< is true if the object is ready to be garbage collected 59 60 // static ClassList* classList; 60 61 }; 61 62
Note: See TracChangeset
for help on using the changeset viewer.