Changeset 9678 in orxonox.OLD for trunk/src/lib/lang/test_object_list.cc
- Timestamp:
- Aug 21, 2006, 11:59:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/test_object_list.cc
r9677 r9678 12 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> 22 22 inline void registerObject(T* object, NewObjectList<T>& objectList) { _id.registerObject(object, objectList); }; 23 pr ivate:23 protected: 24 24 NewClassID _id; 25 25 std::string _objectName; … … 27 27 28 28 }; 29 //NewObjectListDefinition(NewBaseObject);29 NewObjectListDefinition(NewBaseObject); 30 30 31 31 … … 43 43 //ObjectListDeclaration(Test); 44 44 }; 45 NewObjectListDefinitionID(Test, 0);45 NewObjectListDefinitionID(Test, -1); 46 46 47 47 Test::Test() 48 48 { 49 49 this->registerObject(this, Test::objectList); 50 51 this->_id.listInheritance(); 52 50 53 // this->setClassID(CL_PARENT_NODE, "Test"); 51 54 // std::cout << "Test()\n";
Note: See TracChangeset
for help on using the changeset viewer.