xrootd
XrdOucTrace.hh
Go to the documentation of this file.
1 #ifndef _OOUC_TRACE_H
2 #define _OOUC_TRACE_H
3 /******************************************************************************/
4 /* */
5 /* X r d O u c T r a c e . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC03-76-SFO0515 with the Deprtment of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
15 #include "XrdSys/XrdSysHeaders.hh"
16 #include "XrdSys/XrdSysError.hh"
17 
19 {
20 public:
21 
22 inline void Beg(const char *tid=0, const char *usr=0, const char *sid=0)
23  {eDest->TBeg(usr, tid, sid);}
24 
25 inline void End() {eDest->TEnd();}
26 
27 inline int Tracing(int mask) {return mask & What;}
28 
29  int What;
30 
31  XrdOucTrace(XrdSysError *erp) {eDest = erp; What = 0;}
33 
34 static char *bin2hex(char *data, int dlen, char *buff=0);
35 
36 private:
38 };
39 #endif