| <!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_file_find.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_file_find.h</h1><a href="oscl__file__find_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ F I L E _ FIND</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00019 <span class="preprocessor">#ifndef OSCL_FILE_FIND_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_FILE_FIND_H_INCLUDED</span> |
| 00021 <span class="preprocessor"></span> |
| 00022 <span class="preprocessor">#ifndef OSCLCONFIG_IO_H_INCLUDED</span> |
| 00023 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="osclconfig__io_8h.html">osclconfig_io.h</a>"</span> |
| 00024 <span class="preprocessor">#endif</span> |
| 00025 <span class="preprocessor"></span> |
| 00026 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span> |
| 00027 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> |
| 00028 <span class="preprocessor">#endif</span> |
| 00029 <span class="preprocessor"></span> |
| 00030 <span class="preprocessor">#ifndef OSCL_MEM_H_INCLUDED</span> |
| 00031 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__mem_8h.html">oscl_mem.h</a>"</span> |
| 00032 <span class="preprocessor">#endif</span> |
| 00033 <span class="preprocessor"></span> |
| 00034 <span class="preprocessor">#ifndef OSCL_VECTOR_H_INCLUDED</span> |
| 00035 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__vector_8h.html">oscl_vector.h</a>"</span> |
| 00036 <span class="preprocessor">#endif</span> |
| 00037 <span class="preprocessor"></span> |
| 00038 <span class="preprocessor">#ifndef OSCL_STRING_CONTAINERS_H_INCLUDED</span> |
| 00039 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__string__containers_8h.html">oscl_string_containers.h</a>"</span> |
| 00040 <span class="preprocessor">#endif</span> |
| 00041 <span class="preprocessor"></span> |
| <a name="l00045"></a><a class="code" href="classOscl__FileFind.html">00045</a> <span class="keyword">class </span><a class="code" href="classOscl__FileFind.html">Oscl_FileFind</a> |
| 00046 { |
| 00047 <span class="keyword">public</span>: |
| 00048 |
| 00059 OSCL_IMPORT_REF <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classOscl__FileFind.html#a0">FindFirst</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *directory, <span class="keyword">const</span> <span class="keywordtype">char</span> *pattern, <span class="keywordtype">char</span> *buf, uint32 buflen); |
| 00070 OSCL_IMPORT_REF <span class="keyword">const</span> <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *<a class="code" href="classOscl__FileFind.html#a0">FindFirst</a>(<span class="keyword">const</span> <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *directory, <span class="keyword">const</span> <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *pattern, <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *buf, uint32 buflen); |
| 00079 OSCL_IMPORT_REF <span class="keywordtype">char</span> *<a class="code" href="classOscl__FileFind.html#a2">FindNext</a>(<span class="keywordtype">char</span> *buf, uint32 buflen); |
| 00088 OSCL_IMPORT_REF <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *<a class="code" href="classOscl__FileFind.html#a2">FindNext</a>(<a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *buf, uint32 buflen); |
| 00093 OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOscl__FileFind.html#a4">Close</a>(); |
| 00094 |
| <a name="l00095"></a><a class="code" href="classOscl__FileFind.html#s12">00095</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> |
| 00096 { |
| 00097 <a class="code" href="classOscl__FileFind.html#s12s0">E_OK</a> = 0, |
| 00098 <a class="code" href="classOscl__FileFind.html#s12s1">E_INVALID_STATE</a>, |
| 00099 <a class="code" href="classOscl__FileFind.html#s12s2">E_INVALID_ARG</a>, |
| 00100 <a class="code" href="classOscl__FileFind.html#s12s3">E_PATH_TOO_LONG</a>, |
| 00101 <a class="code" href="classOscl__FileFind.html#s12s4">E_PATH_NOT_FOUND</a>, |
| 00102 <a class="code" href="classOscl__FileFind.html#s12s5">E_NO_MATCH</a>, |
| 00103 <a class="code" href="classOscl__FileFind.html#s12s6">E_BUFFER_TOO_SMALL</a>, |
| 00104 <a class="code" href="classOscl__FileFind.html#s12s7">E_NOT_IMPLEMENTED</a>, |
| 00105 <a class="code" href="classOscl__FileFind.html#s12s8">E_OTHER</a> |
| 00106 } <a class="code" href="classOscl__FileFind.html#s12">error_type</a>; |
| 00107 |
| <a name="l00108"></a><a class="code" href="classOscl__FileFind.html#s13">00108</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> |
| 00109 { |
| 00110 <a class="code" href="classOscl__FileFind.html#s13s9">FILE_TYPE</a> = 0, <span class="comment">/* file */</span> |
| 00111 <a class="code" href="classOscl__FileFind.html#s13s10">DIR_TYPE</a>, <span class="comment">/* directory */</span> |
| 00112 <a class="code" href="classOscl__FileFind.html#s13s11">INVALID_TYPE</a> <span class="comment">/* no element available */</span> |
| 00113 } <a class="code" href="classOscl__FileFind.html#s13">element_type</a>; |
| 00114 |
| 00119 OSCL_IMPORT_REF <a class="code" href="classOscl__FileFind.html#s13">element_type</a> <a class="code" href="classOscl__FileFind.html#a5">GetElementType</a>(); |
| 00120 |
| 00121 |
| 00126 OSCL_IMPORT_REF <a class="code" href="classOscl__FileFind.html#s12">error_type</a> <a class="code" href="classOscl__FileFind.html#a6">GetLastError</a>(); |
| 00127 |
| 00132 OSCL_IMPORT_REF <a class="code" href="classOscl__FileFind.html#a7">Oscl_FileFind</a>(); |
| 00138 OSCL_IMPORT_REF <a class="code" href="classOscl__FileFind.html#a8">~Oscl_FileFind</a>(); |
| 00139 |
| 00140 <span class="keyword">private</span>: |
| 00141 |
| 00142 <span class="preprocessor">#if (OSCL_HAS_GLOB)</span> |
| 00143 <span class="preprocessor"></span> glob_t hFind; |
| 00144 size_t count; |
| 00145 <span class="keywordtype">bool</span> haveGlob; |
| 00146 <span class="preprocessor">#else</span> |
| 00147 <span class="preprocessor"></span> size_t count; |
| 00148 <span class="keywordtype">bool</span> haveGlob; |
| 00149 <a class="code" href="classOscl__Vector.html">Oscl_Vector<OSCL_HeapString<OsclMemAllocator></a>, <a class="code" href="classOsclMemAllocator.html">OsclMemAllocator</a>> iDirEntVec; |
| 00150 <span class="preprocessor">#endif</span> |
| 00151 <span class="preprocessor"></span> <a class="code" href="classOscl__FileFind.html#s12">error_type</a> lastError; |
| 00152 <a class="code" href="classOscl__FileFind.html#s13">element_type</a> type; |
| 00153 |
| 00154 }; |
| 00155 |
| 00156 |
| 00157 <span class="preprocessor">#endif // OSCL_FILE_FIND_H_INCLUDED</span> |
| 00158 <span class="preprocessor"></span> |
| </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_20090223 </small> |
| </small></address> |
| </body> |
| </html> |