Ignore:
Timestamp:
12/01/03 18:20:17 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

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

    r2220 r2580  
    6262}
    6363
     64MPrint::MPrint()
     65{
     66    Init(0, 0);
     67    SetBit(kSeperator);
     68}
     69
    6470// --------------------------------------------------------------------------
    6571//
     
    112118    // The pointer is already given by the user.
    113119    //
    114     if (fObject)
     120    if (fObject || TestBit(kSeperator))
    115121        return kTRUE;
    116122
     
    144150Int_t MPrint::Process()
    145151{
    146     fObject->Print(fOption);
     152    if (TestBit(kSeperator))
     153        gLog << endl << setfill('-') << setw(72) << "-" << endl << endl;
     154    else
     155        fObject->Print(fOption);
    147156    return kTRUE;
    148157}
  • trunk/MagicSoft/Mars/mbase/MPrint.h

    r2206 r2580  
    1515    TString fOption;         // Print option
    1616
    17     enum { kSkip = BIT(14) };
     17    enum { kSkip = BIT(14), kSeperator = BIT(15) };
    1818
    1919    void Init(const char *name, const char *title);
    2020
    2121public:
     22    MPrint();
    2223    MPrint(const char *obj,    const char *option="", const char *name=NULL, const char *title=NULL);
    2324    MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL);
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r2556 r2580  
    4343#include <iomanip>
    4444
     45#include <TTime.h>
     46
    4547#include "MLog.h"
    4648
     
    4850
    4951using namespace std;
     52
     53void MTime::SetTime(const TTime &t)
     54{
     55    SetTime((ULong_t)t);
     56}
    5057
    5158void MTime::Print(Option_t *) const
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r2556 r2580  
    1414#endif
    1515
     16class TTime;
     17
    1618class MTime : public MParContainer
    1719{
     
    2426    Byte_t   fSec;
    2527    UInt_t   fNanoSec;
     28
     29    /*
     30     UInt_t   fMjd;     // Day in the century        (Day of sun rise)
     31     TTime    fTime;    // Time of Day               (43,200,000<x<43,200,000)
     32     UShort_t fNanoSec; // NanoSec part of TimeOfDay (<1000)
     33     */
    2634
    2735public:
     
    7179        fHour     = t%24;
    7280    }
     81
     82    void SetTime(const TTime &t);
    7383
    7484    void SetTime(Double_t t)
Note: See TracChangeset for help on using the changeset viewer.