Changeset 752 for trunk/MagicSoft/Mars/mbase/MParList.cc
- Timestamp:
- 04/18/01 14:36:05 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r749 r752 49 49 ClassImp(MParList) 50 50 51 // 52 // FIXME: The Automatic created classes are NEVER deleted!!!!! 53 // 54 51 // -------------------------------------------------------------------------- 52 // 53 // default constructor 54 // creates an empty list 55 // 55 56 MParList::MParList(const char *name, const char *title) 56 57 { 57 //58 // default constructor59 // creates an empty list60 //61 58 *fName = name ? name : "MParList"; 62 59 *fTitle = title ? title : "List of Parameter Containers"; … … 69 66 } 70 67 68 // -------------------------------------------------------------------------- 69 // 70 // copy constructor 71 // 71 72 MParList::MParList(MParList &ts) 72 73 { 73 //74 // copy constructor75 //76 77 74 fContainer.AddAll(&ts.fContainer); 78 75 } 79 76 77 // -------------------------------------------------------------------------- 78 // 79 // create the Iterator over the tasklist 80 // 80 81 void MParList::SetLogStream(MLog *log) 81 82 { 82 //83 // create the Iterator over the tasklist84 //85 83 TIter Next(&fContainer); 86 84 … … 96 94 } 97 95 96 // -------------------------------------------------------------------------- 97 // 98 // Add an Container to the list. 99 // 100 // If 'where' is given, the object will be added after this. 101 // 98 102 Bool_t MParList::AddToList(MParContainer *obj, MParContainer *where) 99 103 { 100 //101 // Add an Container to the list.102 //103 // If 'where' is given, the object will be added after this.104 //105 106 104 // 107 105 // check if the object (you want to add) exists … … 139 137 } 140 138 139 // -------------------------------------------------------------------------- 140 // 141 // Find an object in the list. 142 // 'name' is the name of the object you are searching for. 143 // 141 144 TObject *MParList::FindObject(const char *name) const 142 145 { 143 //144 // Find an object in the list.145 // 'name' is the name of the object you are searching for.146 //147 146 return (TObject*)fContainer.FindObject(name); 148 147 } 149 148 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 // 150 156 MParContainer *MParList::FindCreateObj(const char *classname, const char *objname) 151 157 { 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 the156 // dictionary. If this isn't possible NULL is returned157 //158 159 158 // 160 159 // If now object name (name of the object to identify it in the … … 221 220 } 222 221 222 // -------------------------------------------------------------------------- 223 // 224 // print some information about the current status of MParList 225 // 223 226 void MParList::Print(Option_t *t) 224 227 { 225 //226 // print some information about the current status of MParList227 //228 228 *fLog << dbginf << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl; 229 229 *fLog << endl;
Note:
See TracChangeset
for help on using the changeset viewer.