Changeset 9329 in orxonox.OLD for branches/proxy/src/lib/lang/base_object.cc
- Timestamp:
- Jul 18, 2006, 7:34:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/lang/base_object.cc
r9304 r9329 21 21 #include "util/loading/load_param.h" 22 22 #include "class_list.h" 23 24 #include "synchronizeable.h"25 26 23 27 24 /** … … 48 45 ClassList::removeFromClassList(this); 49 46 50 // delete []this->className;51 47 if (this->xmlElem != NULL) 52 48 delete this->xmlElem; … … 59 55 void BaseObject::loadParams(const TiXmlElement* root) 60 56 { 61 // all loadParams should sometime arrive here.57 // all loadParams should arrive here, and be tested for (root != NULL) 62 58 assert (root != NULL); 63 59 60 // copy the xml-element for to know how it was loaded. 64 61 if (this->xmlElem != NULL) 65 62 delete this->xmlElem; 66 63 this->xmlElem = root->Clone(); 64 67 65 // name setup 68 66 LoadParam(root, "name", this, BaseObject, setName) … … 90 88 /** 91 89 * @brief set the name of the Object 90 * @param objectName The new name of the Object. 92 91 */ 93 92 void BaseObject::setName (const std::string& objectName) … … 162 161 * @returns true on match, false otherwise. 163 162 */ 164 bool BaseObject::operator==(const std::string& objectName) 163 bool BaseObject::operator==(const std::string& objectName) const 165 164 { 166 165 return (this->objectName == objectName); 167 166 } 168 167 169 170 /**171 * @brief displays everything this class is172 * @TODO REIMPLEMENT WITH SENSE.173 */174 void BaseObject::whatIs() const175 {176 177 }
Note: See TracChangeset
for help on using the changeset viewer.