1 |
+ |
//-------------------------------------------------------------------------------------------------- |
2 |
|
// $Id$ |
3 |
+ |
// |
4 |
+ |
// Debug - detailed logging / debug scheme |
5 |
+ |
// |
6 |
+ |
// This class defines the debuging masks (EDebugMask), which are used with the MDB (MIT DeBug) macro |
7 |
+ |
// together with the log levels to control the verbosity. As a rule of thumb: |
8 |
+ |
// |
9 |
+ |
// level 1 and 2 should not be used in (event) loops, level 3 and 4 might be used in loops. |
10 |
+ |
// |
11 |
+ |
// Please, do not introduce more levels! |
12 |
+ |
// |
13 |
+ |
// Authors: C.Loizides |
14 |
+ |
//-------------------------------------------------------------------------------------------------- |
15 |
|
|
16 |
|
#ifndef DATAUTIL_DEBUG_H |
17 |
|
#define DATAUTIL_DEBUG_H |
19 |
|
#include <Rtypes.h> |
20 |
|
#include <TError.h> |
21 |
|
|
22 |
< |
//-------------------------------------------------------------------------------------------------- |
23 |
< |
// |
11 |
< |
// Debug |
12 |
< |
// |
13 |
< |
// Detailed logging / debug scheme: |
14 |
< |
// This class defines the debuging masks (EDebugMask), which |
15 |
< |
// are used with the MDB (MIT DeBug) macro together with |
16 |
< |
// the log levels to control the verbosity. |
17 |
< |
// As a rule of thumb: |
18 |
< |
// level 1 and 2 should not be used in (event) loops, |
19 |
< |
// level 3 and 4 might be used in loops. |
20 |
< |
// Please, do not introduce more levels! |
21 |
< |
// |
22 |
< |
// Authors: C.Loizides |
23 |
< |
// |
24 |
< |
//-------------------------------------------------------------------------------------------------- |
25 |
< |
|
26 |
< |
namespace mithep { |
22 |
> |
namespace mithep |
23 |
> |
{ |
24 |
|
class Debug |
25 |
|
{ |
26 |
|
public: |
37 |
|
virtual ~Debug() {} |
38 |
|
Debug(const Debug &cpy); |
39 |
|
|
40 |
< |
ClassDef(Debug, 0) // Defines different debug masks |
41 |
< |
}; |
40 |
> |
ClassDef(Debug, 0) // Defines different debug masks |
41 |
> |
}; |
42 |
|
} |
43 |
|
|
44 |
|
R__EXTERN mithep::Debug::EDebugMask gDebugMask; |
53 |
|
#define MitAssertStatic(f,e) \ |
54 |
|
if (!(e)) ::Fatal(f, kAssertMsg, _QUOTE_(e), __LINE__, __FILE__) |
55 |
|
|
56 |
< |
#endif /*DATAUTIL_DEBUG_H*/ |
56 |
> |
#endif |