Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
debug.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file debug.h
1 /* This software is distributed under the GNU Lesser General Public License */
2 //==========================================================================
3 //
4 // debug.h - Functions, which are useful for debugging
5 //
6 //==========================================================================
7 // $Id: debug.h,v 1.8 2001/10/10 08:30:00 chris Exp $
8 
9 #ifndef GTL_DEBUG_H
10 #define GTL_DEBUG_H
11 
12 #include <GTL/GTL.h>
13 
14 #include <iostream>
15 
17 
18 //
19 // If _DEBUG is defined the funtions defined here will produce output.
20 // You can either define _DEBUG here (or undef it) or you can set it as
21 // option of your compiler.
22 //
23 //#define _DEBUG 1
24 //#undef _DEBUG
25 //
26 
31 public:
32  static void debug_message (const char*, ...);
33  static void init_debug();
34  static void close_debug();
35  static ostream& os ()
36  { return *GTLerr; }
37 
38 private:
39  static ostream* GTLerr;
40 };
41 
43 
44 #endif // GTL_DEBUG_H
45 
46 //--------------------------------------------------------------------------
47 // end of file
48 //--------------------------------------------------------------------------