Changeset 9675 in orxonox.OLD for trunk/src/lib/lang/test_object_list.cc
- Timestamp:
- Aug 21, 2006, 10:57:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/test_object_list.cc
r9674 r9675 8 8 { 9 9 public: 10 void setName(const std::string& name) { this->_objectName = name; };11 const std::string& getName() const { return _objectName; };12 bool operator==(const std::string& name) const { return _objectName == name; };10 // void setName(const std::string& name) { this->_objectName = name; }; 11 const std::string& getName() const { return _objectName; }; 12 // bool operator==(const std::string& name) const { return _objectName == name; }; 13 13 14 NewObjectListDeclaration(NewBaseObject);14 // NewObjectListDeclaration(NewBaseObject); 15 15 16 16 protected: 17 17 NewBaseObject(const std::string& objectName = "") : _objectName(objectName) 18 18 { 19 this->registerObject(this, objectList);19 // this->registerObject(this, objectList); 20 20 }; 21 21 template<class T> … … 27 27 28 28 }; 29 NewObjectListDefinition(NewBaseObject);29 //NewObjectListDefinition(NewBaseObject); 30 30 31 31 32 class Test : public NewBaseObject 32 class Test : 33 public NewBaseObject 34 // , 35 // public BaseObject 33 36 { 34 37 public: … … 44 47 Test::Test() 45 48 { 49 this->registerObject(this, Test::objectList); 46 50 // this->setClassID(CL_PARENT_NODE, "Test"); 47 this->registerObject(this, Test::objectList);48 51 // std::cout << "Test()\n"; 49 52 }; … … 58 61 Bone() 59 62 { 60 // this->registerObject(this, Bone::objectList);63 // this->registerObject(this, Bone::objectList); 61 64 //std::cout << "Bone()\n"; 62 65 }; … … 75 78 std::cout<< i << std::endl; 76 79 Test* test = new Test[10000]; 77 delete[]test;80 // delete[]test; 78 81 } 79 82 // char tmp[100];
Note: See TracChangeset
for help on using the changeset viewer.