Changeset 609 for trunk/MagicSoft/Mars/mbase/MTaskList.cc
- Timestamp:
- 02/22/01 14:30:10 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r608 r609 9 9 #include "MTaskList.h" 10 10 11 #include <iostream.h> 12 11 #include "MLog.h" 13 12 #include "MParList.h" 14 13 #include "MInputStreamID.h" … … 56 55 task->SetLogStream(log); 57 56 58 //SetLogStream(log);57 MParContainer::SetLogStream(log); 59 58 } 60 59 … … 73 72 if (fTasks.FindObject(task)) 74 73 { 75 cout<< "WARNING: MTaskList::AddToList: Task already existing." << endl;74 *fLog << "WARNING: MTaskList::AddToList: Task already existing." << endl; 76 75 return kTRUE; 77 76 } … … 79 78 if (fTasks.FindObject(name)) 80 79 { 81 cout<< "WARNING: MTaskList::AddToList: '" << name << "' exists in List already." << endl;80 *fLog << "WARNING: MTaskList::AddToList: '" << name << "' exists in List already." << endl; 82 81 return kTRUE; 83 82 } … … 92 91 } 93 92 94 cout<< "Adding " << name << " to " << GetName() << " for " << type << "... " << flush;93 *fLog << "Adding " << name << " to " << GetName() << " for " << type << "... " << flush; 95 94 96 95 task->SetStreamId(type); 97 96 fTasks.Add(task); 98 97 99 cout<< "Done." << endl;98 *fLog << "Done." << endl; 100 99 101 100 return kTRUE; … … 108 107 // do pre processing (before eventloop) of all tasks in the task-list 109 108 // 110 cout<< "Preprocessing... " << flush;109 *fLog << "Preprocessing... " << flush; 111 110 112 111 // … … 122 121 while ( (task=(MTask*)Next()) ) 123 122 { 124 cout<< task->GetName() << "... " << flush;123 *fLog << task->GetName() << "... " << flush; 125 124 126 125 if (!task->PreProcess( pList )) … … 128 127 } 129 128 130 cout<< endl;129 *fLog << endl; 131 130 132 131 return kTRUE; … … 184 183 // 185 184 186 cout<< "Postprocessing... " << flush;185 *fLog << "Postprocessing... " << flush; 187 186 188 187 // … … 198 197 while ( (task=(MTask*)Next()) ) 199 198 { 200 cout<< task->GetName() << "... " << flush;199 *fLog << task->GetName() << "... " << flush; 201 200 202 201 if (!task->PostProcess()) … … 204 203 } 205 204 206 cout<< endl;205 *fLog << endl; 207 206 208 207 return kTRUE; … … 213 212 void MTaskList::Print(Option_t *t) 214 213 { 215 cout<< "TaskList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;214 *fLog << "TaskList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl; 216 215 217 216 fTasks.Print(); 218 217 219 cout<< endl;220 } 221 218 *fLog << endl; 219 } 220
Note:
See TracChangeset
for help on using the changeset viewer.