classgenericvalues.html

来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 689 行 · 第 1/3 页

HTML
689
字号
<p>Definition at line <a class="el" href="GenericValues_8C-source.html#l00433">433</a> of file <a class="el" href="GenericValues_8C-source.html">GenericValues.C</a>.<p>References <a class="el" href="GenericValues_8C-source.html#l00460">show</a>().    </td>  </tr></table><a name="a6" doxytag="GenericValues::setValue"></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 GenericValues::setValue </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>strName</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>strValue</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This method sets the variable of which the name associated with it matches the first argument to the method to the value indicated by the second argument. The value is always supplied as a string which is then converted into the right type for the generic value in question. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>strName</em>&nbsp;</td><td>a string denoting the name associated with the variable which must be set </td></tr><tr><td valign=top><em>strValue</em>&nbsp;</td><td>a string denoting the value to which the variable indicated by the first argument should be set </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>a boolean indicating whether the update was successful </dl><p>Reimplemented in <a class="el" href="classServerSettings.html#a1">ServerSettings</a>.<p>Definition at line <a class="el" href="GenericValues_8C-source.html#l00348">348</a> of file <a class="el" href="GenericValues_8C-source.html">GenericValues.C</a>.<p>References <a class="el" href="GenericValues_8C-source.html#l00294">getValuePtr</a>(), and <a class="el" href="GenericValues_8C-source.html#l00098">GenericValueT::setValue</a>().<p>Referenced by <a class="el" href="GenericValues_8C-source.html#l00372">readValues</a>(), and <a class="el" href="ServerSettings_8C-source.html#l00485">ServerSettings::setValue</a>().    </td>  </tr></table><a name="a9" doxytag="GenericValues::show"></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"> void GenericValues::show </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>out</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>strSeparator</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This display method writes all the generic values in the current collection to the output stream indicated by the first argument to the method. The name associated with each value and the value itself are separated by a separator which is specified as the second argument. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>out</em>&nbsp;</td><td>the output stream to which the current collection of generic values should be written </td></tr><tr><td valign=top><em>strSeparator</em>&nbsp;</td><td>a string representing the separator which should be written between the name associated with each value and the value itself </td></tr></table></dl><p>Definition at line <a class="el" href="GenericValues_8C-source.html#l00460">460</a> of file <a class="el" href="GenericValues_8C-source.html">GenericValues.C</a>.<p>References <a class="el" href="GenericValues_8C-source.html#l00252">getValuesTotal</a>(), <a class="el" href="GenericValues_8h-source.html#l00121">m_values</a>, and <a class="el" href="GenericValues_8C-source.html#l00177">GenericValueT::show</a>().<p>Referenced by <a class="el" href="Player_8C-source.html#l00512">Player::executeStringCommand</a>(), and <a class="el" href="GenericValues_8C-source.html#l00433">saveValues</a>().    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="o3" doxytag="GenericValues::m_iMaxGenericValues"></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"> int GenericValues::m_iMaxGenericValues<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>the number of generic values in the current collection, i.e. the maximum number of values that can be stored <p>Definition at line <a class="el" href="GenericValues_8h-source.html#l00125">125</a> of file <a class="el" href="GenericValues_8h-source.html">GenericValues.h</a>.<p>Referenced by <a class="el" href="GenericValues_8C-source.html#l00266">addSetting</a>(), and <a class="el" href="GenericValues_8C-source.html#l00217">GenericValues</a>().    </td>  </tr></table><a name="o2" doxytag="GenericValues::m_iValuesTotal"></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"> int GenericValues::m_iValuesTotal<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>the total number of generic values stored in the collection so far <p>Definition at line <a class="el" href="GenericValues_8h-source.html#l00123">123</a> of file <a class="el" href="GenericValues_8h-source.html">GenericValues.h</a>.<p>Referenced by <a class="el" href="GenericValues_8C-source.html#l00266">addSetting</a>(), and <a class="el" href="GenericValues_8C-source.html#l00217">GenericValues</a>().    </td>  </tr></table><a name="o0" doxytag="GenericValues::m_strClassName"></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"> char* GenericValues::m_strClassName<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>the name associated with this group of generic values; this is usually the name of the subclass which contains the actual variables <p>Definition at line <a class="el" href="GenericValues_8h-source.html#l00118">118</a> of file <a class="el" href="GenericValues_8h-source.html">GenericValues.h</a>.<p>Referenced by <a class="el" href="GenericValues_8C-source.html#l00266">addSetting</a>(), <a class="el" href="GenericValues_8C-source.html#l00217">GenericValues</a>(), and <a class="el" href="GenericValues_8C-source.html#l00232">~GenericValues</a>().    </td>  </tr></table><a name="o1" doxytag="GenericValues::m_values"></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="classGenericValueT.html">GenericValueT</a>** GenericValues::m_values<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>a pointer to an array containing all generic value pointers (<a class="el" href="classGenericValueT.html">GenericValueT</a> objects) <p>Definition at line <a class="el" href="GenericValues_8h-source.html#l00121">121</a> of file <a class="el" href="GenericValues_8h-source.html">GenericValues.h</a>.<p>Referenced by <a class="el" href="GenericValues_8C-source.html#l00266">addSetting</a>(), <a class="el" href="GenericValues_8C-source.html#l00217">GenericValues</a>(), <a class="el" href="GenericValues_8C-source.html#l00294">getValuePtr</a>(), <a class="el" href="GenericValues_8C-source.html#l00460">show</a>(), and <a class="el" href="GenericValues_8C-source.html#l00232">~GenericValues</a>().    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="GenericValues_8h-source.html">GenericValues.h</a><li><a class="el" href="GenericValues_8C-source.html">GenericValues.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:54 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

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