Ignore:
Timestamp:
12/18/01 12:07:26 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MAGIC.h

    r1027 r1118  
    1717//
    1818const Int_t kCONTINUE = 2;
     19const Int_t kSKIP     = 2;
    1920
    2021//
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r1116 r1118  
    138138    fNumExecutions = 0;
    139139
    140     if (!PreProcess(plist))
     140    switch (PreProcess(plist))
     141    {
     142    case kFALSE:
    141143        return kFALSE;
    142144
    143     fIsPreprocessed = kTRUE;
    144     return kTRUE;
     145    case kTRUE:
     146        fIsPreprocessed = kTRUE;
     147        return kTRUE;
     148
     149    case kSKIP:
     150        return kSKIP;
     151    }
     152
     153    *fLog << err << dbginf << "PreProcess of " << GetDescriptor();
     154    *fLog << " returned an unknown value... aborting." << endl;
     155
     156    return kFALSE;
    145157}
    146158
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1108 r1118  
    245245// --------------------------------------------------------------------------
    246246//
     247//  removes a task from the list (used in PreProcess).
     248//  if kIsOwner is set the task is deleted. (see SetOwner())
     249//
     250void MTaskList::Remove(MTask *task)
     251{
     252    TObject *obj = fTasks->Remove(task);
     253
     254    if (TestBit(kIsOwner))
     255        delete obj;
     256}
     257
     258// --------------------------------------------------------------------------
     259//
    247260//  do pre processing (before eventloop) of all tasks in the task-list
    248261//
     
    267280        *fLog << all << task->GetName() << "... " << flush;
    268281
    269         if (!task->CallPreProcess(fParList))
     282        switch (task->CallPreProcess(fParList))
     283        {
     284        case kFALSE:
    270285            return kFALSE;
     286
     287        case kTRUE:
     288            continue;
     289
     290        case kSKIP:
     291            Remove(task);
     292            continue;
     293        }
     294
     295        *fLog << err << dbginf << "PreProcess of " << task->GetDescriptor();
     296        *fLog << " returned an unknown value... aborting." << endl;
     297        return kFALSE;
    271298    }
    272299
Note: See TracChangeset for help on using the changeset viewer.