Changeset 7575 in orxonox.OLD for branches/network/src/lib/lang
- Timestamp:
- May 10, 2006, 4:48:27 PM (19 years ago)
- Location:
- branches/network/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/lang/base_object.cc
r7444 r7575 83 83 assert (!(this->classID & classID & !CL_MASK_SUBSUPER_CLASS_IDA )); 84 84 85 this->leafClassID = classID; 85 86 this->classID |= (long)classID; 86 87 this->className = className; … … 106 107 * Factory::fabricate(Object->getLeafClassID()); 107 108 */ 108 ClassIDBaseObject::getLeafClassID() const109 const ClassID& BaseObject::getLeafClassID() const 109 110 { 110 assert (this->classList != NULL); 111 return this->classList->getLeafClassID(); 111 return this->leafClassID; 112 112 } 113 113 -
branches/network/src/lib/lang/base_object.h
r7444 r7575 41 41 /** @returns the classID of the corresponding Object */ 42 42 inline int getClassID() const { return this->classID; }; 43 ClassIDgetLeafClassID() const;43 const ClassID& getLeafClassID() const; 44 44 45 45 bool isA (ClassID classID) const; … … 58 58 std::string className; //!< the name of the class 59 59 long classID; //!< this is the id from the class_id.h enumeration 60 ClassID leafClassID; //!< The Leaf Class ID 60 61 61 62 ClassList* classList; //!< Pointer to the ClassList this Object is inside of
Note: See TracChangeset
for help on using the changeset viewer.