Ignore:
Timestamp:
02/22/01 14:30:10 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r608 r609  
    99#include "MTaskList.h"
    1010
    11 #include <iostream.h>
    12 
     11#include "MLog.h"
    1312#include "MParList.h"
    1413#include "MInputStreamID.h"
     
    5655        task->SetLogStream(log);
    5756
    58 //    SetLogStream(log);
     57    MParContainer::SetLogStream(log);
    5958}
    6059
     
    7372    if (fTasks.FindObject(task))
    7473    {
    75         cout << "WARNING: MTaskList::AddToList: Task already existing." << endl;
     74        *fLog << "WARNING: MTaskList::AddToList: Task already existing." << endl;
    7675        return kTRUE;
    7776    }
     
    7978    if (fTasks.FindObject(name))
    8079    {
    81         cout << "WARNING: MTaskList::AddToList: '" << name << "' exists in List already." << endl;
     80        *fLog << "WARNING: MTaskList::AddToList: '" << name << "' exists in List already." << endl;
    8281        return kTRUE;
    8382    }
     
    9291    }
    9392
    94     cout << "Adding " << name << " to " << GetName() << " for " << type << "... " << flush;
     93    *fLog << "Adding " << name << " to " << GetName() << " for " << type << "... " << flush;
    9594
    9695    task->SetStreamId(type);
    9796    fTasks.Add(task);
    9897
    99     cout << "Done." << endl;
     98    *fLog << "Done." << endl;
    10099
    101100    return kTRUE;
     
    108107    // do pre processing (before eventloop) of all tasks in the task-list
    109108    //
    110     cout << "Preprocessing... " << flush;
     109    *fLog << "Preprocessing... " << flush;
    111110
    112111    //
     
    122121    while ( (task=(MTask*)Next()) )
    123122    {
    124         cout << task->GetName() << "... " << flush;
     123        *fLog << task->GetName() << "... " << flush;
    125124
    126125        if (!task->PreProcess( pList ))
     
    128127    }
    129128
    130     cout << endl;
     129    *fLog << endl;
    131130
    132131    return kTRUE;
     
    184183  //
    185184
    186     cout << "Postprocessing... " << flush;
     185    *fLog << "Postprocessing... " << flush;
    187186
    188187  //
     
    198197  while ( (task=(MTask*)Next()) )
    199198  {
    200       cout << task->GetName() << "... " << flush;
     199      *fLog << task->GetName() << "... " << flush;
    201200
    202201      if (!task->PostProcess())
     
    204203  }
    205204
    206   cout << endl;
     205  *fLog << endl;
    207206
    208207  return kTRUE;
     
    213212void MTaskList::Print(Option_t *t)
    214213{
    215   cout << "TaskList: " << this->GetName() << " <" <<  this->GetTitle() << ">" << endl;
     214  *fLog << "TaskList: " << this->GetName() << " <" <<  this->GetTitle() << ">" << endl;
    216215 
    217216  fTasks.Print();
    218217
    219   cout << endl;
    220 }
    221 
     218  *fLog << endl;
     219}
     220
Note: See TracChangeset for help on using the changeset viewer.