| <!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>oscl_init.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_init.h</h1><a href="oscl__init_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 |
| 00013 <span class="preprocessor">#ifndef OSCL_INIT_H_INCLUDED</span> |
| 00014 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_INIT_H_INCLUDED</span> |
| 00015 <span class="preprocessor"></span> |
| 00016 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span> |
| 00017 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> |
| 00018 <span class="preprocessor">#endif</span> |
| 00019 <span class="preprocessor"></span> |
| 00020 <span class="comment">//For logging memory leaks, this module relies directly on fprintf to FILE.</span> |
| 00021 <span class="preprocessor">#include <stdio.h></span> |
| 00022 |
| 00023 <span class="keyword">class </span><a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>; |
| 00024 |
| <a name="l00028"></a><a class="code" href="classOsclSelect.html">00028</a> <span class="keyword">class </span><a class="code" href="classOsclSelect.html">OsclSelect</a> |
| 00029 { |
| 00030 <span class="keyword">public</span>: |
| <a name="l00031"></a><a class="code" href="classOsclSelect.html#a0">00031</a> <a class="code" href="classOsclSelect.html#a0">OsclSelect</a>() |
| 00032 : <a class="code" href="classOsclSelect.html#m0">iOsclBase</a>(true) |
| 00033 , <a class="code" href="classOsclSelect.html#m1">iOsclMemory</a>(true) |
| 00034 , <a class="code" href="classOsclSelect.html#m2">iOsclErrorTrap</a>(true) |
| 00035 , <a class="code" href="classOsclSelect.html#m3">iOsclLogger</a>(true) |
| 00036 , <a class="code" href="classOsclSelect.html#m4">iOsclScheduler</a>(true) |
| 00037 , <a class="code" href="classOsclSelect.html#m5">iErrAlloc</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00038 , <a class="code" href="classOsclSelect.html#m6">iSchedulerAlloc</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00039 , <a class="code" href="classOsclSelect.html#m7">iSchedulerName</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00040 , <a class="code" href="classOsclSelect.html#m8">iSchedulerReserve</a>(10) |
| 00041 , <a class="code" href="classOsclSelect.html#m9">iHeapCheck</a>(false) |
| 00042 , <a class="code" href="classOsclSelect.html#m10">iOutputFile</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00043 {} |
| 00044 |
| 00045 <span class="comment">//this constructor is mainly for back-compatibility with the old OsclInit argument list.</span> |
| <a name="l00046"></a><a class="code" href="classOsclSelect.html#a1">00046</a> <a class="code" href="classOsclSelect.html#a0">OsclSelect</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>* erralloc |
| 00047 , <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>* schedalloc |
| 00048 , <span class="keyword">const</span> <span class="keywordtype">char</span>*name |
| 00049 , int32 reserve = 10 |
| 00050 , <span class="keywordtype">bool</span> heapcheck = <span class="keyword">false</span> |
| 00051 , FILE* output = <a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00052 : <a class="code" href="classOsclSelect.html#m0">iOsclBase</a>(true) |
| 00053 , <a class="code" href="classOsclSelect.html#m1">iOsclMemory</a>(true) |
| 00054 , <a class="code" href="classOsclSelect.html#m2">iOsclErrorTrap</a>(true) |
| 00055 , <a class="code" href="classOsclSelect.html#m3">iOsclLogger</a>(true) |
| 00056 , <a class="code" href="classOsclSelect.html#m4">iOsclScheduler</a>(true) |
| 00057 , <a class="code" href="classOsclSelect.html#m5">iErrAlloc</a>(erralloc) |
| 00058 , <a class="code" href="classOsclSelect.html#m6">iSchedulerAlloc</a>(schedalloc) |
| 00059 , <a class="code" href="classOsclSelect.html#m7">iSchedulerName</a>(name) |
| 00060 , <a class="code" href="classOsclSelect.html#m8">iSchedulerReserve</a>(reserve) |
| 00061 , <a class="code" href="classOsclSelect.html#m9">iHeapCheck</a>(heapcheck) |
| 00062 , <a class="code" href="classOsclSelect.html#m10">iOutputFile</a>(output) |
| 00063 {} |
| 00064 |
| <a name="l00065"></a><a class="code" href="classOsclSelect.html#m0">00065</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m0">iOsclBase</a>; <span class="comment">//Init/Cleanup OsclBase?</span> |
| <a name="l00066"></a><a class="code" href="classOsclSelect.html#m1">00066</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m1">iOsclMemory</a>; <span class="comment">//Init/Cleanup OsclMemory?</span> |
| <a name="l00067"></a><a class="code" href="classOsclSelect.html#m2">00067</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m2">iOsclErrorTrap</a>; <span class="comment">//Init/Cleanup OsclErrorTrap?</span> |
| <a name="l00068"></a><a class="code" href="classOsclSelect.html#m3">00068</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m3">iOsclLogger</a>; <span class="comment">//Init/Cleanup PVLogger?</span> |
| <a name="l00069"></a><a class="code" href="classOsclSelect.html#m4">00069</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m4">iOsclScheduler</a>; <span class="comment">//Init/Cleanup OsclScheduler?</span> |
| 00070 |
| <a name="l00071"></a><a class="code" href="classOsclSelect.html#m5">00071</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *<a class="code" href="classOsclSelect.html#m5">iErrAlloc</a>; <span class="comment">//Allocator for OsclErrorTrap::Init</span> |
| <a name="l00072"></a><a class="code" href="classOsclSelect.html#m6">00072</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *<a class="code" href="classOsclSelect.html#m6">iSchedulerAlloc</a>; <span class="comment">//Allocator for OsclScheduler::Init</span> |
| <a name="l00073"></a><a class="code" href="classOsclSelect.html#m7">00073</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classOsclSelect.html#m7">iSchedulerName</a>; <span class="comment">//Name for OsclScheduler::Init</span> |
| <a name="l00074"></a><a class="code" href="classOsclSelect.html#m8">00074</a> int32 <a class="code" href="classOsclSelect.html#m8">iSchedulerReserve</a>; <span class="comment">//Queue reserve for OsclScheduler::Init</span> |
| 00075 |
| <a name="l00076"></a><a class="code" href="classOsclSelect.html#m9">00076</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSelect.html#m9">iHeapCheck</a>; <span class="comment">//Do Symbian heap checks?</span> |
| 00077 |
| <a name="l00078"></a><a class="code" href="classOsclSelect.html#m10">00078</a> FILE* <a class="code" href="classOsclSelect.html#m10">iOutputFile</a>; <span class="comment">//Output file for memory leak report.</span> |
| 00079 }; |
| 00080 |
| <a name="l00084"></a><a class="code" href="classOsclInit.html">00084</a> <span class="keyword">class </span><a class="code" href="classOsclInit.html">OsclInit</a> |
| 00085 { |
| 00086 <span class="keyword">public</span>: |
| 00097 OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclInit.html#d0">Init</a>( |
| 00098 int32& aError |
| 00099 , <span class="keyword">const</span> <a class="code" href="classOsclSelect.html">OsclSelect</a> *aSelect = <a class="code" href="group__osclbase.html#a81">NULL</a> |
| 00100 ); |
| 00101 |
| 00113 OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclInit.html#d1">Cleanup</a>( |
| 00114 int32& aError |
| 00115 , <span class="keyword">const</span> <a class="code" href="classOsclSelect.html">OsclSelect</a> *aSelect = <a class="code" href="group__osclbase.html#a81">NULL</a> |
| 00116 ); |
| 00117 }; |
| 00118 |
| 00119 |
| 00120 <span class="preprocessor">#endif</span> |
| 00121 <span class="preprocessor"></span> |
| 00122 |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |