⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classchm_1_1chmfile.html

📁 It is a chm file viewer lib with source code
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>path</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf_size</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>path</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::vector&lt; char &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>out</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>path</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::ostream &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>out</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>path</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::list&lt; std::string &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>entries</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>type</em> = files|dirs</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>txt</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>std::list&lt; <a class="el" href="structchm_1_1chm__search__match.html">chm_search_match</a> &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>found</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>whole_words</em> = true, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>titles_only</em> = true</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </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 &copy; 2003 Indrek Mandre <script language="JavaScript">  document.write ('&lt;<a href="mailto:indrek' + '@' + 'mare.ee">indrek' + '@' + 'mare.ee</a>&gt;');</script><p>&nbsp;</p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -