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

📄 classpmimeinfo.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>PMIMEInfo class Reference</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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PMIMEInfo Class Reference</h1><code>#include &lt;<a class="el" href="mime_8h-source.html">mime.h</a>&gt;</code><p><p>Inheritance diagram for PMIMEInfo:<p><center><img src="classPMIMEInfo.png" usemap="#PMIMEInfo_map" border="0" alt=""></center><map name="PMIMEInfo_map"><area href="classPStringToString.html" alt="PStringToString" shape="rect" coords="0,0,100,24"></map><a href="classPMIMEInfo-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a0">PMIMEInfo</a> (istream &amp;strm)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a1">PMIMEInfo</a> (<a class="el" href="classPInternetProtocol.html">PInternetProtocol</a> &amp;socket)</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a2">PrintOn</a> (ostream &amp;strm) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a3">ReadFrom</a> (istream &amp;strm)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a4">SetAt</a> (const char *key, const <a class="el" href="classPString.html">PString</a> value)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a5">SetAt</a> (const <a class="el" href="classPString.html">PString</a> &amp;key, const <a class="el" href="classPString.html">PString</a> value)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a6">SetAt</a> (const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;key, const <a class="el" href="classPString.html">PString</a> value)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a7">Contains</a> (const char *key) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a8">Contains</a> (const <a class="el" href="classPString.html">PString</a> &amp;key) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a9">Contains</a> (const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;key) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a10">Read</a> (<a class="el" href="classPInternetProtocol.html">PInternetProtocol</a> &amp;socket)</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a11">Write</a> (<a class="el" href="classPInternetProtocol.html">PInternetProtocol</a> &amp;socket) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a12">AddMIME</a> (const <a class="el" href="classPString.html">PString</a> &amp;line)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a13">GetString</a> (const <a class="el" href="classPString.html">PString</a> &amp;key, const <a class="el" href="classPString.html">PString</a> &amp;dflt) const</td></tr><tr><td nowrap align=right valign=top>long&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a14">GetInteger</a> (const <a class="el" href="classPString.html">PString</a> &amp;key, long dflt=0) const</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#a15">SetInteger</a> (const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;key, long value)</td></tr><tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#d0">SetAssociation</a> (const <a class="el" href="classPStringToString.html">PStringToString</a> &amp;allTypes, BOOL merge=TRUE)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#d1">SetAssociation</a> (const <a class="el" href="classPString.html">PString</a> &amp;fileType, const <a class="el" href="classPString.html">PString</a> &amp;contentType)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPMIMEInfo.html#d2">GetContentType</a> (const <a class="el" href="classPString.html">PString</a> &amp;fileType)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class contains the Multipurpose Internet Mail Extensions parameters and variables. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PMIMEInfo::PMIMEInfo"></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"> PMIMEInfo::PMIMEInfo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">istream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>strm</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a1" doxytag="PMIMEInfo::PMIMEInfo"></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"> PMIMEInfo::PMIMEInfo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPInternetProtocol.html">PInternetProtocol</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>socket</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a12" doxytag="PMIMEInfo::AddMIME"></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 PMIMEInfo::AddMIME </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>line</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a MIME field given a "name: value" format string. Note that if the field name was already in the MIME dictionary then this will append the new value after a '<br>' character to the previous value.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE is a field was added. </dl>    </td>  </tr></table><a name="a9" doxytag="PMIMEInfo::Contains"></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 PMIMEInfo::Contains </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>key</em>          </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>Determine if the specified key is present in the MIME information set.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the MIME variable is present. </dl>    </td>  </tr></table><a name="a8" doxytag="PMIMEInfo::Contains"></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 PMIMEInfo::Contains </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>key</em>          </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>Determine if the specified key is present in the MIME information set.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the MIME variable is present. </dl>    </td>  </tr></table><a name="a7" doxytag="PMIMEInfo::Contains"></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 PMIMEInfo::Contains </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>key</em>          </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>Determine if the specified key is present in the MIME information set.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the MIME variable is present. </dl>    </td>  </tr></table><a name="d2" doxytag="PMIMEInfo::GetContentType"></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"> <a class="el" href="classPString.html">PString</a> PMIMEInfo::GetContentType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>fileType</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Look up the file type to MIME content type association dictionary and return the MIME content type string. If the file type is not found in the dictionary then the string "application/octet-stream" is returned.<p><dl compact><dt><b>Returns: </b></dt><dd> MIME content type for file type. </dl>    </td>  </tr></table><a name="a14" doxytag="PMIMEInfo::GetInteger"></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"> long PMIMEInfo::GetInteger </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>key</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>long&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dflt</em> = 0</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>Get an integer value for the particular MIME info field with checking for existance. The dflt# parameter is substituted if the field does not exist in the MIME information read in.<p><dl compact><dt><b>Returns: </b></dt><dd> Integer value for the MIME variable. </dl>    </td>  </tr></table><a name="a13" doxytag="PMIMEInfo::GetString"></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"> <a class="el" href="classPString.html">PString</a> PMIMEInfo::GetString </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>key</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dflt</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>Get a string for the particular MIME info field with checking for existance. The dflt# parameter is substituted if the field does not exist in the MIME information read in.<p><dl compact><dt><b>Returns: </b></dt><dd> String for the value of the MIME variable. </dl>    </td>  </tr></table><a name="a2" doxytag="PMIMEInfo::PrintOn"></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"> virtual void PMIMEInfo::PrintOn </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>strm</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr>

⌨️ 快捷键说明

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