Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9678 in orxonox.OLD for trunk/src/lib/lang/test_object_list.cc


Ignore:
Timestamp:
Aug 21, 2006, 11:59:18 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented isA leafID and listInheritance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/test_object_list.cc

    r9677 r9678  
    1212  //   bool operator==(const std::string& name) const { return _objectName == name; };
    1313
    14   //  NewObjectListDeclaration(NewBaseObject);
     14    NewObjectListDeclaration(NewBaseObject);
    1515
    1616protected:
    1717  NewBaseObject(const std::string& objectName = "") : _objectName(objectName)
    1818  {
    19     //    this->registerObject(this, objectList);
     19       this->registerObject(this, objectList);
    2020  };
    2121  template<class T>
    2222  inline void registerObject(T* object, NewObjectList<T>& objectList) { _id.registerObject(object, objectList); };
    23 private:
     23protected:
    2424  NewClassID    _id;
    2525  std::string   _objectName;
     
    2727
    2828};
    29 //NewObjectListDefinition(NewBaseObject);
     29NewObjectListDefinition(NewBaseObject);
    3030
    3131
     
    4343  //ObjectListDeclaration(Test);
    4444};
    45 NewObjectListDefinitionID(Test, 0);
     45NewObjectListDefinitionID(Test, -1);
    4646
    4747Test::Test()
    4848{
    4949  this->registerObject(this, Test::objectList);
     50
     51  this->_id.listInheritance();
     52
    5053//  this->setClassID(CL_PARENT_NODE, "Test");
    5154  // std::cout << "Test()\n";
Note: See TracChangeset for help on using the changeset viewer.