Changeset 4591 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.h
- Timestamp:
- Jun 10, 2005, 6:21:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.h
r4539 r4591 1 /*! 1 /*! 2 2 \file base_object.h 3 3 \brief Definition of the base object class. … … 30 30 void setName (const char* newName); 31 31 /** \brief returns the Name of this Object */ 32 const char* getName (void)const { return this->objectName; };32 inline const char* getName (void)const { return this->objectName; }; 33 33 34 34 /** \returns the className of the corresponding Object */ 35 inline const char* getClassName(void) const { return this->className; };35 inline const char* getClassName(void) const { return this->className; }; 36 36 /** \returns the classID of the corresponding Object */ 37 inline int getClassID(void) const { return this-> id; }37 inline int getClassID(void) const { return this->classID; } 38 38 39 39 // bool isA (char* className); … … 44 44 45 45 protected: 46 void setClassID( int id);46 void setClassID(long classID); 47 47 void setClassName(const char* className); 48 void setClassID( int id, const char* className);48 void setClassID(long classID, const char* className); 49 49 50 50 /** \brief this finalizes an object and makes it ready to be garbage collected */ … … 52 52 53 53 private: 54 const char* className; //!< the name of the class 55 int id; //!< this is the id from the class_list.h enumeration 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 56 58 bool finalized; //!< is true if the object is ready to be garbage collected 57 58 char* objectName; //!< The name of this object59 59 }; 60 60
Note: See TracChangeset
for help on using the changeset viewer.