00001 /*****************************************************************************/ 00002 /* */ 00003 /* XrdMonSndDebug.hh */ 00004 /* */ 00005 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */ 00006 /* All Rights Reserved */ 00007 /* Produced by Jacek Becla for Stanford University under contract */ 00008 /* DE-AC02-76SF00515 with the Department of Energy */ 00009 /*****************************************************************************/ 00010 00011 // $Id: XrdMonSndDebug.hh 22437 2008-03-04 14:35:16Z rdm $ 00012 00013 #ifndef DEBUG_HH 00014 #define DEBUG_HH 00015 00016 // class responsible for handling log/debug/error messages 00017 00018 class XrdMonSndDebug { 00019 public: 00020 enum Verbosity { 00021 Quiet = 0x0000, // No printing 00022 00023 Generator = 0x0001, // related to generating dummy data 00024 SCache = 0x0002, // related to keeping dummy generated data in cache 00025 Sending = 0x0008, // related to sending data from xrootd 00026 SPacket = 0x0010, // building sender's packet 00027 All = 0xFFFF // Everything 00028 }; 00029 00030 static void initialize(); 00031 00032 inline static bool verbose(Verbosity val) { 00033 return _verbose & val; 00034 } 00035 00036 private: 00037 static Verbosity _verbose; 00038 }; 00039 00040 #endif /* DEBUG_HH */