<!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>log.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.17 --> <center> <a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>log.h</h1><a href="log_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 00012 <span class="preprocessor">#ifndef LOG_H</span> 00013 <span class="preprocessor"></span><span class="preprocessor">#define LOG_H</span> 00014 <span class="preprocessor"></span> <a name="l00030"></a><a class="code" href="classLog.html">00030</a> <span class="keyword">class </span><a class="code" href="classLog.html">Log</a> { 00031 <span class="keyword">public</span>: 00032 <a class="code" href="classLog.html#a0">Log</a>(string& r_fname); 00033 <a class="code" href="classLog.html#a0">Log</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * fname); 00034 <a class="code" href="classLog.html#a2">~Log</a>(); 00035 <span class="keywordtype">void</span> <a class="code" href="classLog.html#a3">Write</a>(<span class="keyword">const</span> string& r_msg); 00036 <span class="keywordtype">void</span> <a class="code" href="classLog.html#a3">Write</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...); 00037 <span class="keywordtype">void</span> <a class="code" href="classLog.html#a5">SetActive</a>(<span class="keywordtype">bool</span> b); 00038 <span class="keywordtype">bool</span> <a class="code" href="classLog.html#a6">IsActive</a>(); 00039 <span class="keyword">private</span>: 00040 <a class="code" href="classLog.html#a0">Log</a>(<a class="code" href="classLog.html">Log</a>&); 00041 <a class="code" href="classLog.html">Log</a>& <a class="code" href="classLog.html#c1">operator=</a>(<a class="code" href="classLog.html">Log</a>&); 00042 <span class="keywordtype">void</span> <a class="code" href="classLog.html#c2">SetTime</a>(); 00043 <a name="l00044"></a><a class="code" href="classLog.html#o0">00044</a> string <a class="code" href="classLog.html#o0">mFileName</a>; <a name="l00045"></a><a class="code" href="classLog.html#o1">00045</a> ofstream * <a class="code" href="classLog.html#o1">mpFile</a>; <a name="l00046"></a><a class="code" href="classLog.html#o2">00046</a> <span class="keywordtype">bool</span> <a class="code" href="classLog.html#o2">mActive</a>; <a name="l00047"></a><a class="code" href="classLog.html#o3">00047</a> <span class="keywordtype">char</span> <a class="code" href="classLog.html#o3">mTimeStamp</a>[40]; <a name="l00048"></a><a class="code" href="classLog.html#o4">00048</a> CRITICAL_SECTION <a class="code" href="classLog.html#o4">mMutex</a>; 00049 }; 00050 00051 <span class="preprocessor">#endif // LOG_H</span> 00052 <span class="preprocessor"></span> </pre></div><hr><address style="align: right;"><small>Generated on Mon Mar 29 23:12:53 2004 for Paradigm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.17 </small></address> </body> </html>