a00074.html 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  5. <title>GTL - Graph Template Library: debug.h Source File</title>
  6. <link href="doxygen.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <body>
  9. <p class="links">
  10. <a href="../index.html">Home</a> |
  11. Documentation |
  12. <a href="../register.html">Download</a> |
  13. <a href="../platforms.html">Platforms</a> |
  14. <a href="../refer.html">Projects</a> |
  15. <a href="../lists.html">Mailing Lists</a> |
  16. <a href="../history.html">Version History</a>
  17. </p>
  18. <!-- Generated by Doxygen 1.5.3 -->
  19. <div class="tabs">
  20. <ul>
  21. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  22. <li><a href="classes.html"><span>Classes</span></a></li>
  23. <li class="current"><a href="files.html"><span>Files</span></a></li>
  24. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  25. </ul>
  26. </div>
  27. <h1>debug.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==========================================================================</span>
  28. <a name="l00002"></a>00002 <span class="comment">//</span>
  29. <a name="l00003"></a>00003 <span class="comment">// debug.h - Functions, which are useful for debugging </span>
  30. <a name="l00004"></a>00004 <span class="comment">//</span>
  31. <a name="l00005"></a>00005 <span class="comment">//==========================================================================</span>
  32. <a name="l00006"></a>00006 <span class="comment">// $Id: debug.h,v 1.8 2001/10/10 08:30:00 chris Exp $</span>
  33. <a name="l00007"></a>00007
  34. <a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_DEBUG_H</span>
  35. <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_DEBUG_H</span>
  36. <a name="l00010"></a>00010 <span class="preprocessor"></span>
  37. <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;GTL/GTL.h&gt;</span>
  38. <a name="l00012"></a>00012
  39. <a name="l00013"></a>00013 <span class="preprocessor">#include &lt;iostream&gt;</span>
  40. <a name="l00014"></a>00014
  41. <a name="l00015"></a>00015 __GTL_BEGIN_NAMESPACE
  42. <a name="l00016"></a>00016
  43. <a name="l00017"></a>00017 <span class="comment">//</span>
  44. <a name="l00018"></a>00018 <span class="comment">// If _DEBUG is defined the funtions defined here will produce output.</span>
  45. <a name="l00019"></a>00019 <span class="comment">// You can either define _DEBUG here (or undef it) or you can set it as </span>
  46. <a name="l00020"></a>00020 <span class="comment">// option of your compiler.</span>
  47. <a name="l00021"></a>00021 <span class="comment">//</span>
  48. <a name="l00022"></a>00022 <span class="comment">//#define _DEBUG 1</span>
  49. <a name="l00023"></a>00023 <span class="comment">//#undef _DEBUG</span>
  50. <a name="l00024"></a>00024 <span class="comment">//</span>
  51. <a name="l00025"></a>00025
  52. <a name="l00029"></a>00029 <span class="keyword">class </span>GTL_EXTERN GTL_debug {
  53. <a name="l00030"></a>00030 <span class="keyword">public</span>:
  54. <a name="l00031"></a>00031 <span class="keyword">static</span> <span class="keywordtype">void</span> debug_message (<span class="keyword">const</span> <span class="keywordtype">char</span>*, ...);
  55. <a name="l00032"></a>00032 <span class="keyword">static</span> <span class="keywordtype">void</span> init_debug();
  56. <a name="l00033"></a>00033 <span class="keyword">static</span> <span class="keywordtype">void</span> close_debug();
  57. <a name="l00034"></a>00034 <span class="keyword">static</span> ostream&amp; os ()
  58. <a name="l00035"></a>00035 { <span class="keywordflow">return</span> *GTLerr; }
  59. <a name="l00036"></a>00036
  60. <a name="l00037"></a>00037 <span class="keyword">private</span>:
  61. <a name="l00038"></a>00038 <span class="keyword">static</span> ostream* GTLerr;
  62. <a name="l00039"></a>00039 };
  63. <a name="l00040"></a>00040
  64. <a name="l00041"></a>00041 __GTL_END_NAMESPACE
  65. <a name="l00042"></a>00042
  66. <a name="l00043"></a>00043 <span class="preprocessor">#endif // GTL_DEBUG_H</span>
  67. <a name="l00044"></a>00044 <span class="preprocessor"></span>
  68. <a name="l00045"></a>00045 <span class="comment">//--------------------------------------------------------------------------</span>
  69. <a name="l00046"></a>00046 <span class="comment">// end of file</span>
  70. <a name="l00047"></a>00047 <span class="comment">//--------------------------------------------------------------------------</span>
  71. </pre></div> <p class="links">
  72. <a href="http://www.uni-passau.de/">University of Passau</a>
  73. &nbsp;-&nbsp;
  74. <a href="http://www.fmi.uni-passau.de/">FMI</a>
  75. &nbsp;-&nbsp;
  76. <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
  77. Computer Science</a>
  78. </p>
  79. <div class="copyright">
  80. Design &copy; 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>, University of Passau
  81. </div>
  82. </body>
  83. </html>