Changeset 609 for trunk/MagicSoft/Mars/mbase/MParList.cc
- Timestamp:
- 02/22/01 14:30:10 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r608 r609 15 15 // // 16 16 ///////////////////////////////////////////////////////////////////////////// 17 18 17 #include "MParList.h" 19 18 20 19 #include <TNamed.h> 21 20 22 #include "M ParContainer.h"21 #include "MLog.h" 23 22 24 23 ClassImp(MParList) … … 57 56 cont->SetLogStream(log); 58 57 59 //SetLogStream(log);58 MParContainer::SetLogStream(log); 60 59 } 61 60 … … 74 73 if (!obj) return kTRUE; 75 74 76 cout<< "Adding " << obj->GetName() << " to " << GetName() << "... " << flush;75 *fLog << "Adding " << obj->GetName() << " to " << GetName() << "... " << flush; 77 76 // 78 77 // check if it is in the list yet … … 80 79 if (fContainer.FindObject(obj)) 81 80 { 82 cout<< "WARNING: MParList::add: Container already added" << endl;81 *fLog << "WARNING: MParList::add: Container already added" << endl; 83 82 return kTRUE; 84 83 } … … 92 91 if (!fContainer.FindObject(where)) 93 92 { 94 cout<< "ERROR: MParList::add: Cannot find parameter container after which the new one should be added!" << endl;93 *fLog << "ERROR: MParList::add: Cannot find parameter container after which the new one should be added!" << endl; 95 94 return kFALSE; 96 95 } … … 98 97 99 98 fContainer.Add(obj); 100 cout<< "Done." << endl;99 *fLog << "Done." << endl; 101 100 102 101 return kTRUE; … … 118 117 // print some information about the current status of MParList 119 118 // 120 cout<< "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;121 cout<< endl;119 *fLog << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl; 120 *fLog << endl; 122 121 123 122 }
Note:
See TracChangeset
for help on using the changeset viewer.