|
||||
File indexing completed on 2025-01-18 10:15:42
0001 #ifndef _OOUC_TRACE_H 0002 #define _OOUC_TRACE_H 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d O u c T r a c e . h h */ 0006 /* */ 0007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */ 0008 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 0009 /* DE-AC02-76-SFO0515 with the Deprtment of Energy */ 0010 /* */ 0011 /* This file is part of the XRootD software suite. */ 0012 /* */ 0013 /* XRootD is free software: you can redistribute it and/or modify it under */ 0014 /* the terms of the GNU Lesser General Public License as published by the */ 0015 /* Free Software Foundation, either version 3 of the License, or (at your */ 0016 /* option) any later version. */ 0017 /* */ 0018 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 0019 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 0020 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 0021 /* License for more details. */ 0022 /* */ 0023 /* You should have received a copy of the GNU Lesser General Public License */ 0024 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 0025 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 0026 /* */ 0027 /* The copyright holder's institutional names and contributor's names may not */ 0028 /* be used to endorse or promote products derived from this software without */ 0029 /* specific prior written permission of the institution or contributor. */ 0030 /******************************************************************************/ 0031 0032 #include "XrdSys/XrdSysHeaders.hh" 0033 #include "XrdSys/XrdSysError.hh" 0034 0035 class XrdOucTrace 0036 { 0037 public: 0038 0039 inline void Beg(const char *tid=0, const char *usr=0, const char *sid=0) 0040 {eDest->TBeg(usr, tid, sid);} 0041 0042 inline void End() {eDest->TEnd();} 0043 0044 inline int Tracing(int mask) {return mask & What;} 0045 0046 int What; 0047 0048 XrdOucTrace(XrdSysError *erp) {eDest = erp; What = 0;} 0049 ~XrdOucTrace() {} 0050 0051 static char *bin2hex(char *data, int dlen, char *buff=0); 0052 0053 private: 0054 XrdSysError *eDest; 0055 }; 0056 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |