Home | History | Annotate | Download | only in oscl_html
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
      3 <title>oscl_init.h Source File</title>
      4 <link href="doxygen.css" rel="stylesheet" type="text/css">
      5 </head><body>
      6 <!-- Generated by Doxygen 1.2.18 -->
      7 <center>
      8 <a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
      9 <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 
     10 00013 <span class="preprocessor">#ifndef OSCL_INIT_H_INCLUDED</span>
     11 00014 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_INIT_H_INCLUDED</span>
     12 00015 <span class="preprocessor"></span>
     13 00016 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span>
     14 00017 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span>
     15 00018 <span class="preprocessor">#endif</span>
     16 00019 <span class="preprocessor"></span>
     17 00020 <span class="comment">//For logging memory leaks, this module relies directly on fprintf to FILE.</span>
     18 00021 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
     19 00022 
     20 00023 <span class="keyword">class </span><a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>;
     21 00024 
     22 <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>
     23 00029 {
     24 00030     <span class="keyword">public</span>:
     25 <a name="l00031"></a><a class="code" href="classOsclSelect.html#a0">00031</a>         <a class="code" href="classOsclSelect.html#a0">OsclSelect</a>()
     26 00032                 : <a class="code" href="classOsclSelect.html#m0">iOsclBase</a>(true)
     27 00033                 , <a class="code" href="classOsclSelect.html#m1">iOsclMemory</a>(true)
     28 00034                 , <a class="code" href="classOsclSelect.html#m2">iOsclErrorTrap</a>(true)
     29 00035                 , <a class="code" href="classOsclSelect.html#m3">iOsclLogger</a>(true)
     30 00036                 , <a class="code" href="classOsclSelect.html#m4">iOsclScheduler</a>(true)
     31 00037                 , <a class="code" href="classOsclSelect.html#m5">iErrAlloc</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>)
     32 00038                 , <a class="code" href="classOsclSelect.html#m6">iSchedulerAlloc</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>)
     33 00039                 , <a class="code" href="classOsclSelect.html#m7">iSchedulerName</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>)
     34 00040                 , <a class="code" href="classOsclSelect.html#m8">iSchedulerReserve</a>(10)
     35 00041                 , <a class="code" href="classOsclSelect.html#m9">iHeapCheck</a>(false)
     36 00042                 , <a class="code" href="classOsclSelect.html#m10">iOutputFile</a>(<a class="code" href="group__osclbase.html#a81">NULL</a>)
     37 00043         {}
     38 00044 
     39 00045         <span class="comment">//this constructor is mainly for back-compatibility with the old OsclInit argument list.</span>
     40 <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
     41 00047                    , <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>* schedalloc
     42 00048                    , <span class="keyword">const</span> <span class="keywordtype">char</span>*name
     43 00049                    , int32 reserve = 10
     44 00050                                      , <span class="keywordtype">bool</span> heapcheck = <span class="keyword">false</span>
     45 00051                                                         , FILE* output = <a class="code" href="group__osclbase.html#a81">NULL</a>)
     46 00052                 : <a class="code" href="classOsclSelect.html#m0">iOsclBase</a>(true)
     47 00053                 , <a class="code" href="classOsclSelect.html#m1">iOsclMemory</a>(true)
     48 00054                 , <a class="code" href="classOsclSelect.html#m2">iOsclErrorTrap</a>(true)
     49 00055                 , <a class="code" href="classOsclSelect.html#m3">iOsclLogger</a>(true)
     50 00056                 , <a class="code" href="classOsclSelect.html#m4">iOsclScheduler</a>(true)
     51 00057                 , <a class="code" href="classOsclSelect.html#m5">iErrAlloc</a>(erralloc)
     52 00058                 , <a class="code" href="classOsclSelect.html#m6">iSchedulerAlloc</a>(schedalloc)
     53 00059                 , <a class="code" href="classOsclSelect.html#m7">iSchedulerName</a>(name)
     54 00060                 , <a class="code" href="classOsclSelect.html#m8">iSchedulerReserve</a>(reserve)
     55 00061                 , <a class="code" href="classOsclSelect.html#m9">iHeapCheck</a>(heapcheck)
     56 00062                 , <a class="code" href="classOsclSelect.html#m10">iOutputFile</a>(output)
     57 00063         {}
     58 00064 
     59 <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>
     60 <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>
     61 <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>
     62 <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>
     63 <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>
     64 00070 
     65 <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>
     66 <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>
     67 <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>
     68 <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>
     69 00075 
     70 <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>
     71 00077 
     72 <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>
     73 00079 };
     74 00080 
     75 <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>
     76 00085 {
     77 00086     <span class="keyword">public</span>:
     78 00097         OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclInit.html#d0">Init</a>(
     79 00098             int32&amp; aError
     80 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>
     81 00100         );
     82 00101 
     83 00113         OSCL_IMPORT_REF <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classOsclInit.html#d1">Cleanup</a>(
     84 00114             int32&amp; aError
     85 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>
     86 00116         );
     87 00117 };
     88 00118 
     89 00119 
     90 00120 <span class="preprocessor">#endif</span>
     91 00121 <span class="preprocessor"></span>
     92 00122 
     93 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
     94 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
     95 </small></address>
     96 </body>
     97 </html>
     98