Changeset 7218 in orxonox.OLD for branches/std/src/lib/lang/base_object.cc
- Timestamp:
- Mar 12, 2006, 3:00:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/lang/base_object.cc
r7216 r7218 34 34 BaseObject::BaseObject() 35 35 { 36 this->classID = CL_BASE_OBJECT; 36 37 this->className = "BaseObject"; 37 this->classID = CL_BASE_OBJECT;38 38 39 39 this->objectName = ""; … … 78 78 * @param className the class name 79 79 */ 80 void BaseObject::setClassID(ClassID classID, const char*className)80 void BaseObject::setClassID(ClassID classID, const std::string& className) 81 81 { 82 82 //printf("%s(0x%.8X)->%s(0x%.8X)\n", this->className, this->classID, className, classID); … … 150 150 * @returns true if it is, false otherwise 151 151 */ 152 bool BaseObject::isA (const char*className) const152 bool BaseObject::isA (const std::string& className) const 153 153 { 154 154 ClassID classID = ClassList::StringToID(className); … … 163 163 * @returns true on match, false otherwise. 164 164 */ 165 bool BaseObject::operator==(const char*objectName)166 { 167 return ( objectName != NULL &&this->objectName == objectName);165 bool BaseObject::operator==(const std::string& objectName) 166 { 167 return (this->objectName == objectName); 168 168 } 169 169
Note: See TracChangeset
for help on using the changeset viewer.