• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

XrdOdcTrace.hh

Go to the documentation of this file.
00001 #ifndef _XRDODC_TRACE_H
00002 #define _XRDODC_TRACE_H
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                        X r d O d c T r a c e . h h                         */
00006 /*                                                                            */
00007 /* (C) 2003 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*                DE-AC03-76-SFO0515 with the Deprtment of Energy             */
00011 /******************************************************************************/
00012 
00013 //         $Id: XrdOdcTrace.hh,v 1.3 2008/06/09 10:44:13 ganis Exp $
00014 
00015 #include "XrdOuc/XrdOucTrace.hh"
00016 
00017 // Trace flags
00018 //
00019 #define TRACE_ALL       0xffff
00020 #define TRACE_Debug     0x8000
00021 #define TRACE_Redirect  0x0001
00022 #define TRACE_Forward   0x0002
00023 
00024 #ifndef NODEBUG
00025 
00026 #include "XrdSys/XrdSysHeaders.hh"
00027 #include "XrdOuc/XrdOucTrace.hh"
00028 
00029 #define QTRACE(act) OdcTrace.What & TRACE_ ## act
00030 
00031 #define TRACE(act, x) \
00032         if (QTRACE(act)) \
00033            {OdcTrace.Beg(epname); cerr <<x; OdcTrace.End();}
00034 
00035 #define DEBUG(y) if (QTRACE(Debug)) \
00036                     {OdcTrace.Beg(epname); cerr <<y; OdcTrace.End();}
00037 
00038 #define EPNAME(x) const char *epname = x;
00039 
00040 #else
00041 
00042 #define QTRACE(x) 0
00043 #define DEBUG(x)
00044 #define TRACE(x, y)
00045 #define EPNAME(x)
00046 
00047 #endif
00048 #endif

Generated on Wed Sep 1 2010 for xrootd by  doxygen 1.7.1