Ignore:
Timestamp:
02/22/01 14:30:10 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r608 r609  
    1515//                                                                         //
    1616/////////////////////////////////////////////////////////////////////////////
    17 
    1817#include "MParList.h"
    1918
    2019#include <TNamed.h>
    2120
    22 #include "MParContainer.h"
     21#include "MLog.h"
    2322
    2423ClassImp(MParList)
     
    5756        cont->SetLogStream(log);
    5857
    59 //    SetLogStream(log);
     58    MParContainer::SetLogStream(log);
    6059}
    6160
     
    7473  if (!obj) return kTRUE;
    7574
    76   cout << "Adding " << obj->GetName() << " to " << GetName() << "... " << flush;
     75  *fLog << "Adding " << obj->GetName() << " to " << GetName() << "... " << flush;
    7776  //
    7877  //  check if it is in the list yet
     
    8079  if (fContainer.FindObject(obj))
    8180  {
    82       cout << "WARNING: MParList::add: Container already added" << endl;
     81      *fLog << "WARNING: MParList::add: Container already added" << endl;
    8382      return kTRUE;
    8483  }
     
    9291      if (!fContainer.FindObject(where))
    9392      {
    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;
    9594          return kFALSE;
    9695      }
     
    9897
    9998  fContainer.Add(obj);
    100   cout << "Done." << endl;
     99  *fLog << "Done." << endl;
    101100
    102101  return kTRUE;
     
    118117  //   print some information about the current status of MParList
    119118  //
    120   cout << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
    121   cout << endl;
     119  *fLog << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
     120  *fLog << endl;
    122121 
    123122}
Note: See TracChangeset for help on using the changeset viewer.