Changeset 7682 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/03/06 08:24:21 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 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. -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r7554 r7682 47 47 Bool_t AddToListAfter(MTask *task, const MTask *where, const char *tType="All"); 48 48 Bool_t AddToList(MTask *task, const char *tType="All"); 49 Bool_t AddToList(const TList &list); 49 50 50 51 void SetSerialNumber(Byte_t num);
Note:
See TracChangeset
for help on using the changeset viewer.