?? classchm_1_1chmfile.html
字號:
<td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Open given path inside the archive for reading and return a streambuf object.<p>Returns 0 in case file does not exist or an error happened. You're better off to using chmistream than this method. The returned object should be deleted after use. </td> </tr></table><a name="a4" doxytag="chm::chmfile::operator bool"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> chm::chmfile::operator bool </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Tests whether opened archive is valid.<p><p>Definition at line <a class="el" href="chmxx_8h-source.html#l00067">67</a> of file <a class="el" href="chmxx_8h-source.html">chmxx.h</a>.<p>References <a class="el" href="classchm_1_1chmfile.html#a2">is_open()</a>. </td> </tr></table><a name="a7" doxytag="chm::chmfile::read"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool chm::chmfile::read </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>char * </td> <td class="mdname" nowrap> <em>buf</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>buf_size</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Read buf_size bytes from path and place into buf.<p> </td> </tr></table><a name="a6" doxytag="chm::chmfile::read"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool chm::chmfile::read </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::vector< char > & </td> <td class="mdname" nowrap> <em>out</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Read the entire contents of a file and store inside given vector.<p>The vector is resized to file size. </td> </tr></table><a name="a5" doxytag="chm::chmfile::read"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool chm::chmfile::read </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::ostream & </td> <td class="mdname" nowrap> <em>out</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Read the entire contents of given file and write to stream out.<p> </td> </tr></table><a name="a10" doxytag="chm::chmfile::readdir"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool chm::chmfile::readdir </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::list< std::string > & </td> <td class="mdname" nowrap> <em>entries</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>type</em> = files|dirs</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Read entries under given path and append them to the list.<p>Files of directory type will have '/' at the end of their names. </td> </tr></table><a name="a19" doxytag="chm::chmfile::search_index"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool chm::chmfile::search_index </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname" nowrap> <em>txt</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>std::list< <a class="el" href="structchm_1_1chm__search__match.html">chm_search_match</a> > & </td> <td class="mdname" nowrap> <em>found</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>whole_words</em> = true, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>titles_only</em> = true</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Search the archive for given keyword and return found entries in found.<p> </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="chmxx_8h-source.html">chmxx.h</a></ul><hr>Copyright © 2003 Indrek Mandre <script language="JavaScript"> document.write ('<<a href="mailto:indrek' + '@' + 'mare.ee">indrek' + '@' + 'mare.ee</a>>');</script><p> </p>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -