Ignore:
Timestamp:
10/16/02 10:40:39 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r1080 r1542  
    6767//  must be overloaded. You can also set an option string to use
    6868//  when calling TObject::Print
     69//  If you want that the MPrint instance is removed from the tasklist
     70//  if the container to be printed is not found in the PreProcess, call:
     71//     MPrint::EnableSkip();
    6972//
    7073MPrint::MPrint(const char *obj, const char *option,
     
    8487//  must be overloaded. You can also set an option string to use
    8588//  when calling TObject::Print
     89//  if the container to be printed is not found in the PreProcess, call:
     90//     MPrint::EnableSkip();
    8691//
    8792MPrint::MPrint(const TObject *obj, const char *option,
     
    118123    // If it couldn't get found stop Eventloop
    119124    //
    120     *fLog << err << dbginf << fObjName << " not found... aborting." << endl;
    121     return kFALSE;
     125    *fLog << err << dbginf << fObjName << " not found... ";
     126    if (TestBit(kSKIP))
     127    {
     128        *fLog << "removing task from list." << endl;
     129        return kSKIP;
     130    }
     131    else
     132    {
     133        *fLog << "aborting." << endl;
     134        return kFALSE;
     135    }
    122136}
    123137
  • trunk/MagicSoft/Mars/mbase/MPrint.h

    r1014 r1542  
    1515    TString fOption;         // Print option
    1616
     17    enum { kSkip = BIT(14) };
     18
    1719    void Init(const char *name, const char *title);
    1820
     
    2224
    2325    void SetOption(Option_t *option) { fOption = option; }
     26    void EnableSkip(Bool_t skip=kTRUE) { skip ? SetBit(kSkip) : ResetBit(kSkip); }
    2427
    2528    Bool_t PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1540 r1542  
    380380    if (!noreset)
    381381    {
    382         fParList->SetReadyToSave();
     382        fParList->SetReadyToSave(kFALSE);
    383383        fParList->Reset();
    384384        fParList->SetBit(MParList::kDoNotReset);
Note: See TracChangeset for help on using the changeset viewer.