Ignore:
Timestamp:
04/05/02 14:17:06 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1132 r1270  
    5757#include "MTaskList.h"
    5858
     59#include <TClass.h>
    5960#include <TOrdCollection.h>
    6061
     
    266267    fParList = pList;
    267268
     269    fTasksProcess.Delete();
     270
    268271    //
    269272    //  create the Iterator over the tasklist
     
    279282    {
    280283        *fLog << all << task->GetName() << "... " << flush;
     284
     285        TClass *cls=NULL;
     286        TIter NextBase(task->IsA()->GetListOfBases());
     287        while ((cls=(TClass*)NextBase()))
     288        {
     289            if (cls->GetName()=="MTask")
     290                break;
     291
     292            if (!cls->GetMethodAny("Process"))
     293                continue;
     294
     295            fTasksProcess.Add(task);
     296            break;
     297        }
    281298
    282299        switch (task->CallPreProcess(fParList))
     
    322339    //  create the Iterator for the TaskList
    323340    //
    324     TIter Next(fTasks);
     341    TIter Next(&fTasksProcess);
    325342    MTask *task=NULL;
    326343
Note: See TracChangeset for help on using the changeset viewer.