Changeset 4320 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- May 27, 2005, 1:13:42 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
r4318 r4320 42 42 } 43 43 44 void BaseObject::setClassID(int id, const char* className) 45 { 46 this->id = id; 47 this->className = className; 48 } 49 44 50 45 51 void BaseObject::setClassID (int id) … … 48 54 } 49 55 56 void BaseObject::setClassName(const char* className) 57 { 58 this->className = className; 59 } 50 60 51 61 -
orxonox/trunk/src/lib/lang/base_object.h
r4318 r4320 17 17 virtual ~BaseObject (); 18 18 19 //void setClassName (const char* className);20 19 void setClassID(int id); 20 void setClassName(const char* className); 21 void setClassID(int id, const char* className); 21 22 22 inline const char* getClassName(void) const { return "";};23 inline const char* getClassName(void) const { return this->className;}; 23 24 inline int getClassID(void) const { return this->id; } 24 25 bool isA (char* className);
Note: See TracChangeset
for help on using the changeset viewer.