Ignore:
Timestamp:
04/18/01 14:36:05 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r749 r752  
    4949ClassImp(MParList)
    5050
    51     //
    52     // FIXME: The Automatic created classes are NEVER deleted!!!!!
    53     //
    54 
     51// --------------------------------------------------------------------------
     52//
     53//  default constructor
     54//  creates an empty list
     55//
    5556MParList::MParList(const char *name, const char *title)
    5657{
    57     //
    58     //  default constructor
    59     //  creates an empty list
    60     //
    6158    *fName  = name  ? name  : "MParList";
    6259    *fTitle = title ? title : "List of Parameter Containers";
     
    6966}
    7067
     68// --------------------------------------------------------------------------
     69//
     70// copy constructor
     71//
    7172MParList::MParList(MParList &ts)
    7273{
    73     //
    74     // copy constructor
    75     //
    76 
    7774    fContainer.AddAll(&ts.fContainer);
    7875}
    7976
     77// --------------------------------------------------------------------------
     78//
     79//  create the Iterator over the tasklist
     80//
    8081void MParList::SetLogStream(MLog *log)
    8182{
    82     //
    83     //  create the Iterator over the tasklist
    84     //
    8583    TIter Next(&fContainer);
    8684
     
    9694}
    9795
     96// --------------------------------------------------------------------------
     97//
     98//  Add an Container to the list.
     99//
     100//  If 'where' is given, the object will be added after this.
     101//
    98102Bool_t MParList::AddToList(MParContainer *obj, MParContainer *where)
    99103{
    100   //
    101   //  Add an Container to the list.
    102   //
    103   //  If 'where' is given, the object will be added after this.
    104   //
    105  
    106104  //
    107105  //  check if the object (you want to add) exists
     
    139137}
    140138
     139// --------------------------------------------------------------------------
     140//
     141//  Find an object in the list.
     142//  'name' is the name of the object you are searching for.
     143//
    141144TObject *MParList::FindObject(const char *name) const
    142145{
    143     //
    144     //  Find an object in the list.
    145     //  'name' is the name of the object you are searching for.
    146     //
    147146    return (TObject*)fContainer.FindObject(name);
    148147}
    149148
     149// --------------------------------------------------------------------------
     150//
     151//  Find an object in the list.
     152//  'name' is the name of the object you are searching for.
     153//  If the object doesn't exist we try to create one from the
     154//  dictionary. If this isn't possible NULL is returned
     155//
    150156MParContainer *MParList::FindCreateObj(const char *classname, const char *objname)
    151157{
    152     //
    153     //  Find an object in the list.
    154     //  'name' is the name of the object you are searching for.
    155     //  If the object doesn't exist we try to create one from the
    156     //  dictionary. If this isn't possible NULL is returned
    157     //
    158 
    159158    //
    160159    // If now object name (name of the object to identify it in the
     
    221220}
    222221
     222// --------------------------------------------------------------------------
     223//
     224//   print some information about the current status of MParList
     225//
    223226void MParList::Print(Option_t *t)
    224227{
    225   //
    226   //   print some information about the current status of MParList
    227   //
    228228  *fLog << dbginf << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
    229229  *fLog << endl;
Note: See TracChangeset for help on using the changeset viewer.