Changeset 4694 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/20/04 11:25:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r4601 r4694 368 368 // -------------------------------------------------------------------------- 369 369 // 370 // Searches for the tasklist tlist (default: MTaskList) and returns 371 // a task with the given name found in this list. If one of both isn't 372 // found NULL is returned 373 // 374 MTask *MParList::FindTask(const char *name, const char *tlist) const 375 { 376 TObject *l = FindObject(tlist, "MTaskList"); 377 return (MTask*)(l ? l->FindObject(name) : NULL); 378 } 379 380 // -------------------------------------------------------------------------- 381 // 370 382 // returns the ClassName without anything which is behind that last ';' in 371 383 // string. -
trunk/MagicSoft/Mars/mbase/MParList.h
r4601 r4694 21 21 22 22 class MLog; 23 class MTask; 23 24 24 25 class MParList : public MParContainer … … 57 58 TObject *FindObject(const char *name, const char *classname) const; 58 59 TObject *FindObject(const TObject *obj, const char *classname) const; 60 61 MTask *FindTask(const char *name, const char *tlist="MTaskList") const; 59 62 60 63 MParContainer *FindCreateObj(const char *classname, const char *objname=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.