Line | |
---|
1 | ///////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // MTime
|
---|
4 | //
|
---|
5 | ///////////////////////////////////////////////////////////////////////
|
---|
6 |
|
---|
7 | #include "MTime.h"
|
---|
8 |
|
---|
9 | #include <iostream.h>
|
---|
10 | #include <iomanip.h>
|
---|
11 |
|
---|
12 | ClassImp(MTime)
|
---|
13 |
|
---|
14 | void MTime::Print(Option_t *)
|
---|
15 | {
|
---|
16 | cout << "MTime Information: " << hex
|
---|
17 | << " 0x" <<setfill('0') << setw(2) << fTimeStamp[0]
|
---|
18 | << " 0x" <<setfill('0') << setw(2) << fTimeStamp[1] << endl << endl;
|
---|
19 | }
|
---|
20 | /*
|
---|
21 | inline Bool_t operator<(MTime &t1, MTime &t2)
|
---|
22 | {
|
---|
23 | return (t1.GetTimeHi()<=t2.GetTimeHi()) && (t1.GetTimeLo()<t2.GetTimeLo());
|
---|
24 | }
|
---|
25 |
|
---|
26 | inline Bool_t operator>(MTime &t1, MTime &t2)
|
---|
27 | {
|
---|
28 | return (t1.GetTimeHi()>=t2.GetTimeHi()) && (t1.GetTimeLo()>t2.GetTimeLo());
|
---|
29 | }
|
---|
30 |
|
---|
31 | inline Bool_t operator<=(MTime &t1, MTime &t2)
|
---|
32 | {
|
---|
33 | return (t1.GetTimeHi()<=t2.GetTimeHi()) && (t1.GetTimeLo()<=t2.GetTimeLo());
|
---|
34 | }
|
---|
35 |
|
---|
36 | inline Bool_t operator>=(MTime &t1, MTime &t2)
|
---|
37 | {
|
---|
38 | return (t1.GetTimeHi()>=t2.GetTimeHi()) && (t1.GetTimeLo()>=t2.GetTimeLo());
|
---|
39 | }
|
---|
40 |
|
---|
41 | inline Bool_t operator==(MTime &t1, MTime &t2)
|
---|
42 | {
|
---|
43 | return (t1.GetTimeLo()==t2.GetTimeLo()) && (t1.GetTimeHi()==t2.GetTimeHi());
|
---|
44 | }
|
---|
45 | */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.