Ignore:
Timestamp:
08/20/04 11:25:36 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r4601 r4694  
    368368// --------------------------------------------------------------------------
    369369//
     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//
     374MTask *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//
    370382//  returns the ClassName without anything which is behind that last ';' in
    371383//  string.
  • trunk/MagicSoft/Mars/mbase/MParList.h

    r4601 r4694  
    2121
    2222class MLog;
     23class MTask;
    2324
    2425class MParList : public MParContainer
     
    5758    TObject *FindObject(const char *name, const char *classname) const;
    5859    TObject *FindObject(const TObject *obj, const char *classname) const;
     60
     61    MTask   *FindTask(const char *name, const char *tlist="MTaskList") const;
    5962
    6063    MParContainer *FindCreateObj(const char *classname, const char *objname=NULL);
Note: See TracChangeset for help on using the changeset viewer.