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

📄 classphttpfield.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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>PHTTPField 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>PHTTPField Class Reference</h1><code>#include &lt;<a class="el" href="httpform_8h-source.html">httpform.h</a>&gt;</code><p><p>Inheritance diagram for PHTTPField:<p><center><img src="classPHTTPField.png" usemap="#PHTTPField_map" border="0" alt=""></center><map name="PHTTPField_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="367,0,504,24"><area href="classPHTTPBooleanField.html" alt="PHTTPBooleanField" shape="rect" coords="0,112,137,136"><area href="classPHTTPCompositeField.html" alt="PHTTPCompositeField" shape="rect" coords="147,112,284,136"><area href="classPHTTPIntegerField.html" alt="PHTTPIntegerField" shape="rect" coords="294,112,431,136"><area href="classPHTTPRadioField.html" alt="PHTTPRadioField" shape="rect" coords="441,112,578,136"><area href="classPHTTPSelectField.html" alt="PHTTPSelectField" shape="rect" coords="588,112,725,136"><area href="classPHTTPStringField.html" alt="PHTTPStringField" shape="rect" coords="735,112,872,136"><area href="classPHTTPFieldArray.html" alt="PHTTPFieldArray" shape="rect" coords="73,168,210,192"><area href="classPHTTPSubForm.html" alt="PHTTPSubForm" shape="rect" coords="220,168,357,192"><area href="classPHTTPPasswordField.html" alt="PHTTPPasswordField" shape="rect" coords="735,168,872,192"></map><a href="classPHTTPField-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="classPHTTPField.html#a0">PHTTPField</a> (const char *bname, const char *<a class="el" href="classPHTTPField.html#n2">title</a>, const char *<a class="el" href="classPHTTPField.html#n3">help</a>)</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPObject.html#z199_0">Comparison</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a1">Compare</a> (const <a class="el" href="classPObject.html">PObject</a> &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a2">GetName</a> () const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPCaselessString.html">PCaselessString</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a3">GetBaseName</a> () const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a4">SetName</a> (const <a class="el" href="classPString.html">PString</a> &amp;newName)</td></tr><tr><td nowrap align=right valign=top>virtual const PHTTPField *&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a5">LocateName</a> (const <a class="el" href="classPString.html">PString</a> &amp;name) const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a6">GetTitle</a> () const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a7">GetHelp</a> () const</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a8">SetHelp</a> (const <a class="el" href="classPString.html">PString</a> &amp;text)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a9">SetHelp</a> (const <a class="el" href="classPString.html">PString</a> &amp;hotLinkURL, const <a class="el" href="classPString.html">PString</a> &amp;linkText)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a10">SetHelp</a> (const <a class="el" href="classPString.html">PString</a> &amp;hotLinkURL, const <a class="el" href="classPString.html">PString</a> &amp;imageURL, const <a class="el" href="classPString.html">PString</a> &amp;imageText)</td></tr><tr><td nowrap align=right valign=top>virtual PHTTPField *&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a11">NewField</a> () const=0</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a12">ExpandFieldNames</a> (<a class="el" href="classPString.html">PString</a> &amp;text, PINDEX start, PINDEX &amp;finish) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a13">GetHTMLTag</a> (<a class="el" href="classPHTML.html">PHTML</a> &amp;html) const=0</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a14">GetHTMLInput</a> (const <a class="el" href="classPString.html">PString</a> &amp;input) const</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a15">GetHTMLSelect</a> (const <a class="el" href="classPString.html">PString</a> &amp;selection) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a16">GetHTMLHeading</a> (<a class="el" href="classPHTML.html">PHTML</a> &amp;html) const</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a17">GetValue</a> (BOOL dflt=FALSE) const=0</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a18">SetValue</a> (const <a class="el" href="classPString.html">PString</a> &amp;newValue)=0</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a19">LoadFromConfig</a> (<a class="el" href="classPConfig.html">PConfig</a> &amp;cfg)</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a20">SaveToConfig</a> (<a class="el" href="classPConfig.html">PConfig</a> &amp;cfg) const</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a21">Validated</a> (const <a class="el" href="classPString.html">PString</a> &amp;newVal, <a class="el" href="classPStringStream.html">PStringStream</a> &amp;msg) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a22">GetAllNames</a> (<a class="el" href="classPStringList.html">PStringList</a> &amp;list) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a23">SetAllValues</a> (const <a class="el" href="classPStringToString.html">PStringToString</a> &amp;data)</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a24">ValidateAll</a> (const <a class="el" href="classPStringToString.html">PStringToString</a> &amp;data, <a class="el" href="classPStringStream.html">PStringStream</a> &amp;msg) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a25">NotYetInHTML</a> () const</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#a26">SetInHTML</a> ()</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPCaselessString.html">PCaselessString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#n0">baseName</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPCaselessString.html">PCaselessString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#n1">fullName</a></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="classPHTTPField.html#n2">title</a></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="classPHTTPField.html#n3">help</a></td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPHTTPField.html#n4">notInHTML</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class is the abstract base class for fields in a PHTTPForm# resource type. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PHTTPField::PHTTPField"></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"> PHTTPField::PHTTPField </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>bname</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>title</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>help</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></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="a1" doxytag="PHTTPField::Compare"></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 <a class="el" href="classPObject.html#z199_0">Comparison</a> PHTTPField::Compare </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPObject.html">PObject</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>obj</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Compare the fields using the field names.<p><dl compact><dt><b>Returns: </b></dt><dd> Comparison of the name fields of the two fields. </dl><p>Reimplemented from <a class="el" href="classPObject.html#z199_1">PObject</a>.    </td>  </tr></table><a name="a12" doxytag="PHTTPField::ExpandFieldNames"></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 PHTTPField::ExpandFieldNames </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>text</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>start</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>finish</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Reimplemented in <a class="el" href="classPHTTPCompositeField.html#a4">PHTTPCompositeField</a>, and <a class="el" href="classPHTTPFieldArray.html#a3">PHTTPFieldArray</a>.    </td>  </tr></table><a name="a22" doxytag="PHTTPField::GetAllNames"></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 PHTTPField::GetAllNames </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPStringList.html">PStringList</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>list</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieve all the names in the field and subfields.<p><dl compact><dt><b>Returns: </b></dt><dd> List of strings for each subfield. </dl><p>Reimplemented in <a class="el" href="classPHTTPCompositeField.html#a12">PHTTPCompositeField</a>.    </td>  </tr></table><a name="a3" doxytag="PHTTPField::GetBaseName"></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"> const <a class="el" href="classPCaselessString.html">PCaselessString</a>&amp; PHTTPField::GetBaseName </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>Get the identifier name of the field.<p><dl compact><dt><b>Returns: </b></dt><dd> String for field name. </dl>    </td>  </tr></table><a name="a7" doxytag="PHTTPField::GetHelp"></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"> const <a class="el" href="classPString.html">PString</a>&amp; PHTTPField::GetHelp </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>Get the title of the field.<p><dl compact><dt><b>Returns: </b></dt><dd> String for title placed next to the field. </dl>    </td>  </tr></table><a name="a16" doxytag="PHTTPField::GetHTMLHeading"></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 PHTTPField::GetHTMLHeading </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPHTML.html">PHTML</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>html</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Convert the field to HTML for inclusion into the HTTP page. <p>Reimplemented in <a class="el" href="classPHTTPCompositeField.html#a7">PHTTPCompositeField</a>, and <a class="el" href="classPHTTPSubForm.html#a3">PHTTPSubForm</a>.    </td>  </tr></table><a name="a14" doxytag="PHTTPField::GetHTMLInput"></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 <a class="el" href="classPString.html">PString</a> PHTTPField::GetHTMLInput </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>input</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Convert the field input to HTML for inclusion into the HTTP page. <p>Reimplemented in <a class="el" href="classPHTTPCompositeField.html#a6">PHTTPCompositeField</a>, <a class="el" href="classPHTTPBooleanField.html#a4">PHTTPBooleanField</a>, and <a class="el" href="classPHTTPRadioField.html#a10">PHTTPRadioField</a>.    </td>  </tr></table><a name="a15" doxytag="PHTTPField::GetHTMLSelect"></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 <a class="el" href="classPString.html">PString</a> PHTTPField::GetHTMLSelect </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>selection</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>

⌨️ 快捷键说明

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