Ignore:
Timestamp:
08/27/04 16:57:55 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r4722 r4766  
    5757//  fArgv: A TList containing all other command line arguments
    5858//
    59 MArgs::MArgs(int argc, char **argv) : fArgc(argc)
     59//  If root==kFALSE all root commandline options are deleted from
     60//  the list, namely: -b
     61//
     62MArgs::MArgs(int argc, char **argv, Bool_t root) : fArgc(argc)
    6063{
    6164    // FIXME: argv has no const-qualifier to be idetical with
     
    7275        fArgv->Add(&o);
    7376    }
     77
     78    if (root)
     79        return;
     80
     81    HasOnlyAndRemove("-b");
    7482}
    7583
     
    408416    const TString name = n.Strip(TString::kBoth);
    409417
     418    Bool_t rc = kFALSE;
     419
    410420    TIter Next(fArgv);
    411421    TString *s = NULL;
     
    414424        {
    415425            delete fArgv->Remove(dynamic_cast<TObject*>(s));
    416             return kTRUE;
     426            rc = kTRUE;
    417427        }
    418428
    419     return kFALSE;
    420 }
     429    return rc;
     430}
  • trunk/MagicSoft/Mars/mbase/MArgs.h

    r4722 r4766  
    2727
    2828public:
    29     MArgs(int argc, char **argv);
     29    MArgs(int argc, char **argv, Bool_t root=kFALSE);
    3030    ~MArgs();
    3131
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r4588 r4766  
    11311131void MStatusDisplay::Reset()
    11321132{
     1133    if (gROOT->IsBatch())
     1134    {
     1135        fBatch->Delete();
     1136        return;
     1137    }
     1138
    11331139    for (int i=fTab->GetNumberOfTabs()-1; i>0; i--)
    11341140        RemoveTab(i);
Note: See TracChangeset for help on using the changeset viewer.