XrdCnsSsiSay.hh

Go to the documentation of this file.
00001 #ifndef __XRDCnsSsiSay_H_
00002 #define __XRDCnsSsiSay_H_
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                          X r d C n s S a y . h h                           */
00006 /*                                                                            */
00007 /* (c) 2009 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-AC02-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012   
00013 //         $Id: XrdCnsSsiSay.hh 30949 2009-11-02 16:37:58Z ganis $
00014 
00015 #include "XrdSys/XrdSysError.hh"
00016 
00017 class XrdCnsSsiSay
00018 {
00019 public:
00020 
00021 inline void M(const char *txt1,   const char *txt2=0, const char *txt3=0,
00022               const char *txt4=0, const char *txt5=0)
00023              {eDest->Say("cns_ssi: ", txt1, txt2, txt3, txt4, txt5);}
00024 
00025 inline void V(const char *txt1,   const char *txt2=0, const char *txt3=0,
00026               const char *txt4=0, const char *txt5=0)
00027              {if (Verbose) M(txt1, txt2, txt3, txt4, txt5);}
00028 
00029 inline void setV(int val) {Verbose = val;}
00030 
00031        XrdCnsSsiSay(XrdSysError *erp) : eDest(erp), Verbose(0) {}
00032       ~XrdCnsSsiSay() {}
00033 
00034 private:
00035 
00036 XrdSysError *eDest;
00037 int          Verbose;
00038 };
00039 #endif

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