Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4747 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.cc


Ignore:
Timestamp:
Jul 1, 2005, 4:10:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: classList now counts the count of classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/base_object.cc

    r4746 r4747  
    1818
    1919#include "base_object.h"
     20
    2021#include "load_param.h"
    2122#include "compiler.h"
     23#include "class_list.h"
    2224
    2325using namespace std;
     
    3840  if (root)
    3941    this->loadParams(root);
     42
     43  ClassList::addToClassList(this, this->classID, "BaseObject");
    4044}
    4145
     
    4549BaseObject::~BaseObject ()
    4650{
     51  ClassList::removeFromClassList(this);
     52
    4753  //  delete []this->className;
    4854  if (this->objectName)
    49     delete []this->objectName;
    50 }
     55    delete []this->objectName;}
    5156
    5257/**
     
    7075  this->classID |= classID;
    7176  this->className = className;
     77
     78  ClassList::addToClassList(this, classID, className);
    7279}
    7380
     
    94101   \returns true if it is, false otherwise
    95102*/
    96 bool BaseObject::isA (ClassID classID) const
     103bool BaseObject::isA (long classID) const
    97104{
    98105  // if classID is a derivable object
Note: See TracChangeset for help on using the changeset viewer.