Changeset 7682 for trunk/MagicSoft/Mars/mbase/MTaskList.cc
- Timestamp:
- 05/03/06 08:24:21 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r7554 r7682 314 314 // -------------------------------------------------------------------------- 315 315 // 316 // Add all objects in list to the tasklist. If some of them do not 317 // inherit from MTask return kFALSE, also if AddToList returns an error 318 // for one of the tasks 319 // 320 Bool_t MTaskList::AddToList(const TList &list) 321 { 322 TIter Next(&list); 323 TObject *obj=0; 324 while ((obj=Next())) 325 { 326 if (!obj->InheritsFrom(MTask::Class())) 327 { 328 *fLog << err << "ERROR - Object " << obj->GetName() << " doesn't inherit from MTask..." << endl; 329 return kFALSE; 330 } 331 332 if (!AddToList(obj)) 333 return kFALSE; 334 } 335 return kTRUE; 336 } 337 338 // -------------------------------------------------------------------------- 339 // 316 340 // Find an object in the list. 317 341 // 'name' is the name of the object you are searching for.
Note:
See TracChangeset
for help on using the changeset viewer.