XrdClientDebug.cc

Go to the documentation of this file.
00001 /***********************************************************/
00002 /*                T X D e b u g . c c                      */
00003 /*                        2003                             */
00004 /*             Produced by Alvise Dorigo                   */
00005 /*         & Fabrizio Furano for INFN padova               */
00006 /***********************************************************/
00007 //
00008 //   $Id: XrdClientDebug.cc 30949 2009-11-02 16:37:58Z ganis $
00009 
00010 const char *XrdClientDebugCVSID = "$Id: XrdClientDebug.cc 30949 2009-11-02 16:37:58Z ganis $";
00011 //
00012 // Author: Alvise Dorigo, Fabrizio Furano
00013 
00014 #include "XrdClient/XrdClientDebug.hh"
00015 
00016 #include "XrdSys/XrdSysPthread.hh"
00017 XrdClientDebug *XrdClientDebug::fgInstance = 0;
00018 
00019 //_____________________________________________________________________________
00020 XrdClientDebug* XrdClientDebug::Instance() {
00021    // Create unique instance
00022 
00023    if (!fgInstance) {
00024       fgInstance = new XrdClientDebug;
00025       if (!fgInstance) {
00026          abort();
00027       }
00028    }
00029    return fgInstance;
00030 }
00031 
00032 //_____________________________________________________________________________
00033 XrdClientDebug::XrdClientDebug() {
00034    // Constructor
00035 
00036    fOucLog = new XrdSysLogger();
00037    fOucErr = new XrdSysError(fOucLog, "Xrd");
00038 
00039    fDbgLevel = EnvGetLong(NAME_DEBUG);
00040 }
00041 
00042 //_____________________________________________________________________________
00043 XrdClientDebug::~XrdClientDebug() {
00044    // Destructor
00045    delete fOucErr;
00046    delete fOucLog;
00047 
00048    fOucErr = 0;
00049    fOucLog = 0;
00050 
00051    delete fgInstance;
00052    fgInstance = 0;
00053 }

Generated on Tue Jul 5 14:46:18 2011 for ROOT_528-00b_version by  doxygen 1.5.1