Ignore:
Timestamp:
05/20/03 10:19:41 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MLog.h

    r2121 r2123  
    171171    void SetNoColors(Bool_t flag=kTRUE) { flag ? SetBit(eNoColors) : ResetBit(eNoColors); }
    172172
     173    void Separator(TString str="", int outlvl=0)
     174    {
     175        if (!str.IsNull())
     176        {
     177            const Int_t l = (78-str.Length())/2-3;
     178            str.Prepend("={ ");
     179            str.Prepend('-', l);
     180            str.Append(" }=");
     181            str.Append('-', l);
     182        }
     183        if (str.Length()<78)
     184            str.Append('-', 78-str.Length());
     185
     186        const int save = fOutputLevel;
     187        SetOutputLevel(outlvl);
     188        (*this) << str << endl;
     189        fOutputLevel = save;
     190    }
     191
    173192    ClassDef(MLog, 0) // This is what we call 'The logging system'
    174193};
Note: See TracChangeset for help on using the changeset viewer.