12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
- <title>GTL - Graph Template Library: debug.h Source File</title>
- <link href="doxygen.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <p class="links">
- <a href="../index.html">Home</a> |
- Documentation |
- <a href="../register.html">Download</a> |
- <a href="../platforms.html">Platforms</a> |
- <a href="../refer.html">Projects</a> |
- <a href="../lists.html">Mailing Lists</a> |
- <a href="../history.html">Version History</a>
- </p>
- <!-- Generated by Doxygen 1.5.3 -->
- <div class="tabs">
- <ul>
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="classes.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li><a href="pages.html"><span>Related Pages</span></a></li>
- </ul>
- </div>
- <h1>debug.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==========================================================================</span>
- <a name="l00002"></a>00002 <span class="comment">//</span>
- <a name="l00003"></a>00003 <span class="comment">// debug.h - Functions, which are useful for debugging </span>
- <a name="l00004"></a>00004 <span class="comment">//</span>
- <a name="l00005"></a>00005 <span class="comment">//==========================================================================</span>
- <a name="l00006"></a>00006 <span class="comment">// $Id: debug.h,v 1.8 2001/10/10 08:30:00 chris Exp $</span>
- <a name="l00007"></a>00007
- <a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_DEBUG_H</span>
- <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_DEBUG_H</span>
- <a name="l00010"></a>00010 <span class="preprocessor"></span>
- <a name="l00011"></a>00011 <span class="preprocessor">#include <GTL/GTL.h></span>
- <a name="l00012"></a>00012
- <a name="l00013"></a>00013 <span class="preprocessor">#include <iostream></span>
- <a name="l00014"></a>00014
- <a name="l00015"></a>00015 __GTL_BEGIN_NAMESPACE
- <a name="l00016"></a>00016
- <a name="l00017"></a>00017 <span class="comment">//</span>
- <a name="l00018"></a>00018 <span class="comment">// If _DEBUG is defined the funtions defined here will produce output.</span>
- <a name="l00019"></a>00019 <span class="comment">// You can either define _DEBUG here (or undef it) or you can set it as </span>
- <a name="l00020"></a>00020 <span class="comment">// option of your compiler.</span>
- <a name="l00021"></a>00021 <span class="comment">//</span>
- <a name="l00022"></a>00022 <span class="comment">//#define _DEBUG 1</span>
- <a name="l00023"></a>00023 <span class="comment">//#undef _DEBUG</span>
- <a name="l00024"></a>00024 <span class="comment">//</span>
- <a name="l00025"></a>00025
- <a name="l00029"></a>00029 <span class="keyword">class </span>GTL_EXTERN GTL_debug {
- <a name="l00030"></a>00030 <span class="keyword">public</span>:
- <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>*, ...);
- <a name="l00032"></a>00032 <span class="keyword">static</span> <span class="keywordtype">void</span> init_debug();
- <a name="l00033"></a>00033 <span class="keyword">static</span> <span class="keywordtype">void</span> close_debug();
- <a name="l00034"></a>00034 <span class="keyword">static</span> ostream& os ()
- <a name="l00035"></a>00035 { <span class="keywordflow">return</span> *GTLerr; }
- <a name="l00036"></a>00036
- <a name="l00037"></a>00037 <span class="keyword">private</span>:
- <a name="l00038"></a>00038 <span class="keyword">static</span> ostream* GTLerr;
- <a name="l00039"></a>00039 };
- <a name="l00040"></a>00040
- <a name="l00041"></a>00041 __GTL_END_NAMESPACE
- <a name="l00042"></a>00042
- <a name="l00043"></a>00043 <span class="preprocessor">#endif // GTL_DEBUG_H</span>
- <a name="l00044"></a>00044 <span class="preprocessor"></span>
- <a name="l00045"></a>00045 <span class="comment">//--------------------------------------------------------------------------</span>
- <a name="l00046"></a>00046 <span class="comment">// end of file</span>
- <a name="l00047"></a>00047 <span class="comment">//--------------------------------------------------------------------------</span>
- </pre></div> <p class="links">
- <a href="http://www.uni-passau.de/">University of Passau</a>
- -
- <a href="http://www.fmi.uni-passau.de/">FMI</a>
- -
- <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
- Computer Science</a>
- </p>
- <div class="copyright">
- Design © 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>, University of Passau
- </div>
- </body>
- </html>
|