Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2007, 12:52:26 AM (16 years ago)
Author:
landauf
Message:

it starts to work, but there is still much to do.

@bensch: thanks for you mail, but i can't tell you much at the moment - i'm still changing lots of things and i have no idea if everything will work as intendet, so i'll write you as soon as i have reliable informations :)
</abuse log for pms>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/ClassHierarchy.cc

    r150 r162  
    3131    void Identifier::initialize(IdentifierList* parents)
    3232    {
     33        std::cout << "*** Initialize " << this->name_ << "-Singleton.\n";
    3334        if (parents)
    3435        {
     
    7677    }
    7778
    78     void Identifier::addObject(BaseObject* object)
    79     {
     79    void Identifier::addObject(OrxonoxClass* object)
     80    {
     81        std::cout << "*** Added " << this->name_ << " to list.\n";
    8082        this->objects_->add(object);
    8183    }
    8284
    83     void Identifier::removeObject(BaseObject* object)
    84     {
     85    void Identifier::removeObject(OrxonoxClass* object)
     86    {
     87        std::cout << "*** Removed " << this->name_ << " from list.\n";
    8588        this->objects_->remove(object);
    8689    }
     
    218221    }
    219222
    220     void ObjectList::add(BaseObject* object)
     223    void ObjectList::add(OrxonoxClass* object)
    221224    {
    222225        ObjectListElement* temp = this->first_;
     
    225228    }
    226229
    227     void ObjectList::remove(BaseObject* object)
     230    void ObjectList::remove(OrxonoxClass* object)
    228231    {
    229232        if (!object)
     
    259262    // ###    ObjectListElement    ###
    260263    // ###############################
    261     ObjectListElement::ObjectListElement(BaseObject* object)
     264    ObjectListElement::ObjectListElement(OrxonoxClass* object)
    262265    {
    263266        this->object_ = object;
    264267        this->next_ = NULL;
    265268    }
     269
     270
     271    // ###############################
     272    // ###     ClassHierarchy      ###
     273    // ###############################
     274    ClassHierarchy* ClassHierarchy::pointer_ = NULL;
     275
     276    ClassHierarchy* ClassHierarchy::getSingleton()
     277    {
     278        if (!pointer_)
     279            pointer_ = new ClassHierarchy();
     280
     281        return pointer_;
     282    }
     283
     284    ClassHierarchy::ClassHierarchy()
     285    {
     286        this->bCreatingHierarchy_ = false;
     287    }
    266288}
Note: See TracChangeset for help on using the changeset viewer.