Changeset 4470 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.h
- Timestamp:
- Jun 2, 2005, 1:55:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.