- Timestamp:
- Jun 2, 2005, 1:55:19 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4436 r4470 62 62 /** 63 63 \brief sets the class identifiers 64 \param a number for the class from class_list.h enumeration65 \param the class name64 \param id a number for the class from class_list.h enumeration 65 \param className the class name 66 66 */ 67 67 void BaseObject::setClassID(int id, const char* className) … … 74 74 /** 75 75 \brief sets the class identifier 76 \param a number for the class from class_list.h enumeration76 \param id a number for the class from class_list.h enumeration 77 77 */ 78 78 void BaseObject::setClassID (int id) … … 84 84 /** 85 85 \brief sets the class identifiers 86 \param the class name86 \param className the class name 87 87 */ 88 88 void BaseObject::setClassName(const char* className) … … 92 92 93 93 94 /* *94 /* 95 95 \brief sets the class identifiers 96 96 \param a number for the class from class_list.h enumeration 97 97 \param the class name 98 */ 98 99 99 bool BaseObject::isA (char* className) 100 100 { … … 103 103 return true; 104 104 } 105 106 107 /*108 \brief this finalizes an object and makes it ready to be garbage collected109 105 */ 110 void BaseObject::finalize()111 {112 this->finalized = true;113 }114 115 106 116 107 /** -
orxonox/trunk/src/lib/lang/base_object.h
r4436 r4470 1 1 /*! 2 2 \file base_object.h 3 \brief Definition of the base object class. that is a global handler for all classes. 3 \brief Definition of the base object class. 4 5 This is a global handler for all classes. 6 7 \todo isA() 4 8 */ 5 9 … … 10 14 #include "class_list.h" 11 15 #ifndef NULL 12 #define NULL 0x0 16 #define NULL 0x0 //!< NULL 13 17 #endif 14 18 … … 32 36 /** \returns the classID of the corresponding Object */ 33 37 inline int getClassID(void) const { return this->id; } 34 bool isA (char* className); 38 39 // bool isA (char* className); 35 40 36 41 /** \returns if the object is finalized */ 37 42 inline bool isFinalized() { return this->finalized; } 38 void finalize(); 43 /** \brief this finalizes an object and makes it ready to be garbage collected */ 44 void finalize(void) { this->finalized = true; }; 39 45 40 46 void setName (const char* newName); 47 /** \brief returns the Name of this Object */ 41 48 const char* getName (void)const { return this->objectName; }; 42 49 … … 46 53 bool finalized; //!< is true if the object is ready to be garbage collected 47 54 48 char* objectName;//!< The name of this object55 char* objectName; //!< The name of this object 49 56 }; 50 57
Note: See TracChangeset
for help on using the changeset viewer.