Changeset 2580 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/01/03 18:20:17 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MPrint.cc
r2220 r2580 62 62 } 63 63 64 MPrint::MPrint() 65 { 66 Init(0, 0); 67 SetBit(kSeperator); 68 } 69 64 70 // -------------------------------------------------------------------------- 65 71 // … … 112 118 // The pointer is already given by the user. 113 119 // 114 if (fObject )120 if (fObject || TestBit(kSeperator)) 115 121 return kTRUE; 116 122 … … 144 150 Int_t MPrint::Process() 145 151 { 146 fObject->Print(fOption); 152 if (TestBit(kSeperator)) 153 gLog << endl << setfill('-') << setw(72) << "-" << endl << endl; 154 else 155 fObject->Print(fOption); 147 156 return kTRUE; 148 157 } -
trunk/MagicSoft/Mars/mbase/MPrint.h
r2206 r2580 15 15 TString fOption; // Print option 16 16 17 enum { kSkip = BIT(14) };17 enum { kSkip = BIT(14), kSeperator = BIT(15) }; 18 18 19 19 void Init(const char *name, const char *title); 20 20 21 21 public: 22 MPrint(); 22 23 MPrint(const char *obj, const char *option="", const char *name=NULL, const char *title=NULL); 23 24 MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL); -
trunk/MagicSoft/Mars/mbase/MTime.cc
r2556 r2580 43 43 #include <iomanip> 44 44 45 #include <TTime.h> 46 45 47 #include "MLog.h" 46 48 … … 48 50 49 51 using namespace std; 52 53 void MTime::SetTime(const TTime &t) 54 { 55 SetTime((ULong_t)t); 56 } 50 57 51 58 void MTime::Print(Option_t *) const -
trunk/MagicSoft/Mars/mbase/MTime.h
r2556 r2580 14 14 #endif 15 15 16 class TTime; 17 16 18 class MTime : public MParContainer 17 19 { … … 24 26 Byte_t fSec; 25 27 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 */ 26 34 27 35 public: … … 71 79 fHour = t%24; 72 80 } 81 82 void SetTime(const TTime &t); 73 83 74 84 void SetTime(Double_t t)
Note:
See TracChangeset
for help on using the changeset viewer.