Changeset 4318 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- May 27, 2005, 12:53:34 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4261 r4318 42 42 } 43 43 44 void BaseObject::setClassName (const char* className) 44 45 void BaseObject::setClassID (int id) 45 46 { 46 this-> className = className;47 this->id = id; 47 48 } 49 50 48 51 49 52 bool BaseObject::isA (char* className) -
orxonox/trunk/src/lib/lang/base_object.h
r4261 r4318 9 9 10 10 #include "stdincl.h" 11 11 #include "class_list.h" 12 12 13 13 class BaseObject { … … 17 17 virtual ~BaseObject (); 18 18 19 void setClassName (const char* className); 20 inline const char* getClassName(void) const { return this->className;}; 19 //void setClassName (const char* className); 20 void setClassID(int id); 21 22 inline const char* getClassName(void) const { return "";}; 23 inline int getClassID(void) const { return this->id; } 21 24 bool isA (char* className); 22 25 … … 26 29 private: 27 30 const char* className; 31 int id; 28 32 bool finalized; 29 33 };
Note: See TracChangeset
for help on using the changeset viewer.