Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > faa1042277fc54511a5cd73681616a31 > files > 132

cgicc-3.2.8-1mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
   "http://www.w3.org/TR/REC-html40/loose.dtd">

<html lang="en" dir="LTR">

<head>
  <!-- $Id: header.html,v 1.5 2004/06/12 01:58:25 sbooth Exp $ -->
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>cgicc: cgicc::HTMLAttributeList Class Reference</title>
  <link rev="made" href="mailto:bug-cgicc@gnu.org" />
  <link href="doxygen.css" rel="stylesheet" type="text/css" />
  <link href="cgicc-doc.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacecgicc.html">cgicc</a>::<a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a>
  </div>
</div>
<div class="contents">
<h1>cgicc::HTMLAttributeList Class Reference</h1><!-- doxytag: class="cgicc::HTMLAttributeList" -->An expandable list of <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> objects.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="HTMLAttributeList_8h_source.html">cgicc/HTMLAttributeList.h</a>&gt;</code>
<p>

<p>
<a href="classcgicc_1_1HTMLAttributeList-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 Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
<tr><td colspan="2"><div class="groupText"><br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#9c8f67d11ed763c7db7a63f76752fbb1">HTMLAttributeList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an empty <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a>.  <a href="#9c8f67d11ed763c7db7a63f76752fbb1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#d9443d332856abb7ebcb5d091da175b9">HTMLAttributeList</a> (const <a class="el" href="classcgicc_1_1HTMLAttribute.html">HTMLAttribute</a> &amp;head)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a>, specifying the first element.  <a href="#d9443d332856abb7ebcb5d091da175b9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#28f9e4055f5438fae4f6fbc07a649044">HTMLAttributeList</a> (const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#28f9e4055f5438fae4f6fbc07a649044"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#8603072ae42a7cfb5d0c802668310700">~HTMLAttributeList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#8603072ae42a7cfb5d0c802668310700"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Overloaded Operators</div></td></tr>
<tr><td colspan="2"><div class="groupText"><br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#1f54386b12d4ca50dc2b86ef547dab4f">operator=</a> (const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assign one <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to another.  <a href="#1f54386b12d4ca50dc2b86ef547dab4f"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">List Management</div></td></tr>
<tr><td colspan="2"><div class="groupText">Add attributes to the list <br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#729e66b8ff664e809355d43b2dd6fdb2">set</a> (const std::string &amp;name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an atomic <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to this list.  <a href="#729e66b8ff664e809355d43b2dd6fdb2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#e0dc11586aef5900ecd4479f13acce0d">set</a> (const std::string &amp;name, const std::string &amp;value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to this list.  <a href="#e0dc11586aef5900ecd4479f13acce0d"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Utility Methods</div></td></tr>
<tr><td colspan="2"><div class="groupText"><br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLAttributeList.html#7bd5eda52ace598fedc2b797fdbfba89">render</a> (std::ostream &amp;out) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Render this <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to an ostream.  <a href="#7bd5eda52ace598fedc2b797fdbfba89"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An expandable list of <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> objects. 
<p>
An <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> represents any number of <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> objects which may be embedded in an <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. To add <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> objects to an <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a>, use the <a class="el" href="classcgicc_1_1HTMLAttributeList.html#729e66b8ff664e809355d43b2dd6fdb2" title="Add an atomic HTMLAttribute to this list.">set()</a> methods or functions. For example, <div class="fragment"><pre class="fragment"> <a class="code" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">cgicc::HTMLAttributeList</a> list = <a class="code" href="classcgicc_1_1HTMLAttributeList.html#729e66b8ff664e809355d43b2dd6fdb2" title="Add an atomic HTMLAttribute to this list.">cgicc::set</a>(<span class="stringliteral">"HEIGHT"</span>, <span class="stringliteral">"100"</span>).set(<span class="stringliteral">"WIDTH"</span>, <span class="stringliteral">"100"</span>); 
</pre></div> generates an <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> with two elements. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> <p>
<a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> </dd></dl>

<p>Definition at line <a class="el" href="HTMLAttributeList_8h_source.html#l00069">69</a> of file <a class="el" href="HTMLAttributeList_8h_source.html">HTMLAttributeList.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="9c8f67d11ed763c7db7a63f76752fbb1"></a><!-- doxytag: member="cgicc::HTMLAttributeList::HTMLAttributeList" ref="9c8f67d11ed763c7db7a63f76752fbb1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::HTMLAttributeList::HTMLAttributeList           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create an empty <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a>. 
<p>
HTMLAttributeLists are most often created with the set functions 
</div>
</div><p>
<a class="anchor" name="d9443d332856abb7ebcb5d091da175b9"></a><!-- doxytag: member="cgicc::HTMLAttributeList::HTMLAttributeList" ref="d9443d332856abb7ebcb5d091da175b9" args="(const HTMLAttribute &amp;head)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::HTMLAttributeList::HTMLAttributeList           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLAttribute.html">HTMLAttribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>head</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a new <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a>, specifying the first element. 
<p>
The first attribute in the list is set to <code>head</code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>head</em>&nbsp;</td><td>The first element of the list </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="28f9e4055f5438fae4f6fbc07a649044"></a><!-- doxytag: member="cgicc::HTMLAttributeList::HTMLAttributeList" ref="28f9e4055f5438fae4f6fbc07a649044" args="(const HTMLAttributeList &amp;list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::HTMLAttributeList::HTMLAttributeList           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>
Sets the elements in this list to those in <code>list</code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to copy. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="8603072ae42a7cfb5d0c802668310700"></a><!-- doxytag: member="cgicc::HTMLAttributeList::~HTMLAttributeList" ref="8603072ae42a7cfb5d0c802668310700" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cgicc::HTMLAttributeList::~HTMLAttributeList           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>
Delete this <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> object 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1f54386b12d4ca50dc2b86ef547dab4f"></a><!-- doxytag: member="cgicc::HTMLAttributeList::operator=" ref="1f54386b12d4ca50dc2b86ef547dab4f" args="(const HTMLAttributeList &amp;list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a>&amp; cgicc::HTMLAttributeList::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assign one <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to another. 
<p>
Sets the elements in this list to those in <code>list</code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>list</em>&nbsp;</td><td>The <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to copy </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="7bd5eda52ace598fedc2b797fdbfba89"></a><!-- doxytag: member="cgicc::HTMLAttributeList::render" ref="7bd5eda52ace598fedc2b797fdbfba89" args="(std::ostream &amp;out) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cgicc::HTMLAttributeList::render           </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>out</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Render this <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> to an ostream. 
<p>
This is used for output <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>out</em>&nbsp;</td><td>The ostream to which to write </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e0dc11586aef5900ecd4479f13acce0d"></a><!-- doxytag: member="cgicc::HTMLAttributeList::set" ref="e0dc11586aef5900ecd4479f13acce0d" args="(const std::string &amp;name, const std::string &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a>&amp; cgicc::HTMLAttributeList::set           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to this list. 
<p>
For a list of possible attributes see <a href="http://www.w3.org/TR/REC-html40/">http://www.w3.org/TR/REC-html40/</a> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to set. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value of the <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to set. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to <code>this</code> </dd></dl>

</div>
</div><p>
<a class="anchor" name="729e66b8ff664e809355d43b2dd6fdb2"></a><!-- doxytag: member="cgicc::HTMLAttributeList::set" ref="729e66b8ff664e809355d43b2dd6fdb2" args="(const std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a>&amp; cgicc::HTMLAttributeList::set           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add an atomic <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to this list. 
<p>
<code>isindex</code> is an example of an atomic attribute. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> to set. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to <code>this</code> </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="HTMLAttributeList_8h_source.html">HTMLAttributeList.h</a></ul>
</div>
<!-- $Id: footer.html,v 1.7 2004/06/12 01:58:25 sbooth Exp $ -->

<hr>

<address><small>
<a href="http://www.cgicc.org">GNU cgicc</a> - A C++ class library for
writing CGI applications<br />
Copyright &copy; 1996 - 2004 
<a href="mailto:sboothATgnuDOTorg">Stephen F. Booth</a><br />
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front Cover Texts, and with no Back-Cover
Texts.<br />
Documentation generated Tue Jun 9 15:30:17 2009 for cgicc by
<a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.5.9
</small></address>

</body>

</html>