<!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::HTMLElement 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacecgicc.html">cgicc</a>::<a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> </div> </div> <div class="contents"> <h1>cgicc::HTMLElement Class Reference</h1><!-- doxytag: class="cgicc::HTMLElement" --><!-- doxytag: inherits="cgicc::MStreamable" -->Class representing an HTML element. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="HTMLElement_8h_source.html">cgicc/HTMLElement.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for cgicc::HTMLElement:</div> <div class="dynsection"> <p><center><img src="classcgicc_1_1HTMLElement.png" usemap="#cgicc::HTMLElement_map" border="0" alt=""></center> <map name="cgicc::HTMLElement_map"> <area href="classcgicc_1_1MStreamable.html" alt="cgicc::MStreamable" shape="rect" coords="248,0,486,24"> <area href="classcgicc_1_1HTMLAtomicElement.html" alt="cgicc::HTMLAtomicElement< Tag >" shape="rect" coords="0,112,238,136"> <area href="classcgicc_1_1HTMLBooleanElement.html" alt="cgicc::HTMLBooleanElement< Tag >" shape="rect" coords="248,112,486,136"> <area href="classcgicc_1_1HTMLBooleanElement.html" alt="cgicc::HTMLBooleanElement< nullTag >" shape="rect" coords="496,112,734,136"> <area href="classcgicc_1_1comment.html" alt="cgicc::comment" shape="rect" coords="496,168,734,192"> </map> </div> <p> <a href="classcgicc_1_1HTMLElement-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 Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">EElementType</a> { <a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc8822d05e004c169a5ee0bb93d306a6f8">eAtomic</a>, <a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdcb84e58cad176683095b9a453bb29090d">eBoolean</a> }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Possible types of HTMLElements. <a href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#4f16912ad3a88ede11ba800f4572f1bf">clone</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clone this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <a href="#4f16912ad3a88ede11ba800f4572f1bf"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#c17d5128ffb09a6806d6bfeda5ae0d5d">render</a> (std::ostream &out) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to an ostream. <a href="#c17d5128ffb09a6806d6bfeda5ae0d5d"></a><br></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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#53d2642fbf92d7113852081373437ca7">HTMLElement</a> (const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> &element)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#53d2642fbf92d7113852081373437ca7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#7cc7ea295b5dee9b9a0c3a78a9df837f">~HTMLElement</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#7cc7ea295b5dee9b9a0c3a78a9df837f"></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">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#4314bf660a4551af60da2ffc70cb3fa8">operator==</a> (const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> &element) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two HTMLElements for equality. <a href="#4314bf660a4551af60da2ffc70cb3fa8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#9045dbbda7e20ae0fb1fdfbdc6a54921">operator!=</a> (const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> &element) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two HTMLElements for inequality. <a href="#9045dbbda7e20ae0fb1fdfbdc6a54921"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#4731e74e7e30b51f815d766bf9a72389">operator=</a> (const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> &element)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#4731e74e7e30b51f815d766bf9a72389"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Accessor Methods</div></td></tr> <tr><td colspan="2"><div class="groupText">Information on the element <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#8b8aea571cff9be2e0477cab4256b1d1">getName</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the name of this element. <a href="#8b8aea571cff9be2e0477cab4256b1d1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#ca7872f9a0af5d68b3f291864d170c6f">getData</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the data contained in this element, if any. <a href="#ca7872f9a0af5d68b3f291864d170c6f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">EElementType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#59839d795931f744b1c1081b09ac1455">getType</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the type of this element. <a href="#59839d795931f744b1c1081b09ac1455"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Mutator Methods</div></td></tr> <tr><td colspan="2"><div class="groupText">Set properties of the element <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#67b10a4236c30b0dd9d377894d2a1592">setData</a> (const std::string &data)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the data contained in this element. <a href="#67b10a4236c30b0dd9d377894d2a1592"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Embedded HTMLElement Management</div></td></tr> <tr><td colspan="2"><div class="groupText">Manage elements embedded in this one <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classcgicc_1_1HTMLElementList.html">HTMLElementList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#8ce9f5d9d8fc44d86f1ac9e6e3b98966">getEmbedded</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the <a class="el" href="classcgicc_1_1HTMLElementList.html" title="An expandable list of HTMLElement objects.">HTMLElementList</a> embedded in this element, if any. <a href="#8ce9f5d9d8fc44d86f1ac9e6e3b98966"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#f9fa44bec5c56b3e9d86f13fd3dcab03">setEmbedded</a> (const <a class="el" href="classcgicc_1_1HTMLElementList.html">HTMLElementList</a> &embedded)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the <a class="el" href="classcgicc_1_1HTMLElementList.html" title="An expandable list of HTMLElement objects.">HTMLElementList</a> associated with this element. <a href="#f9fa44bec5c56b3e9d86f13fd3dcab03"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#9c1d529f958121713ad70500185ac362">add</a> (const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> &element)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add an embedded <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> in this one. <a href="#9c1d529f958121713ad70500185ac362"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#e605b1b91f7d148cef61104bb302bd00">add</a> (<a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> *element)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add an embedded <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> in this one. <a href="#e605b1b91f7d148cef61104bb302bd00"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">HTMLAttribute Management</div></td></tr> <tr><td colspan="2"><div class="groupText">Manage attributes embedded in this element <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#d30265702bd576bb53ae024372f9ab06">getAttributes</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the attributes associated with this element. <a href="#d30265702bd576bb53ae024372f9ab06"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#90dd57f6ecca1ae35774e97c9efcdad2">setAttributes</a> (const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> &attributes)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the attributes associated with this element. <a href="#90dd57f6ecca1ae35774e97c9efcdad2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#a0761d714cec53f4023cd113a38d4809">set</a> (const std::string &name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set an <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> on this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <a href="#a0761d714cec53f4023cd113a38d4809"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#f622de1aa8f6dbf7e2cbef5678235077">set</a> (const std::string &name, const std::string &value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set an <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> on this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <a href="#f622de1aa8f6dbf7e2cbef5678235077"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Boolean element methods</div></td></tr> <tr><td colspan="2"><div class="groupText">Methods specific to boolean elements <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#5ce5bbf51b630b1073e359dbac58ea03">swapState</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Swap the state of the boolean element. <a href="#5ce5bbf51b630b1073e359dbac58ea03"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#9640e8bb7736f30acb95b00567ec66fb">getState</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the state of this boolean element. <a href="#9640e8bb7736f30acb95b00567ec66fb"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#c8ade6f17edb24907da86fda19c5b075">HTMLElement</a> (const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> *attributes, const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> *embedded, const std::string *data, <a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">EElementType</a> type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Subclass constructor. <a href="#c8ade6f17edb24907da86fda19c5b075"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLElement.html#d48bd23233ed9ec4178ef97112523cf9">dataSpecified</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For subclasses only. <a href="#d48bd23233ed9ec4178ef97112523cf9"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Class representing an HTML element. <p> An HTML element is any entity enclosed in angle brackets (< and >) interpreted as HTML, for example <code>a</code>, <code>img</code>, <code>html</code>, and <code>body</code>.<p> This class is an abstract base class that defines the interface for all <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> subclasses. <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00060">60</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="2956e51b12617b7fbc415c6c4c1d2fdc"></a><!-- doxytag: member="cgicc::HTMLElement::EElementType" ref="2956e51b12617b7fbc415c6c4c1d2fdc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">cgicc::HTMLElement::EElementType</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Possible types of HTMLElements. <p> An <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> is either atomic, meaning it has no corresponding closing tag (elements such as <code>hr</code> and <code>br</code> are atomic) or boolean (elements such as <code>a</code> and <code>ol</code> are boolean) <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="2956e51b12617b7fbc415c6c4c1d2fdc8822d05e004c169a5ee0bb93d306a6f8"></a><!-- doxytag: member="eAtomic" ref="2956e51b12617b7fbc415c6c4c1d2fdc8822d05e004c169a5ee0bb93d306a6f8" args="" -->eAtomic</em> </td><td> Atomic element, such as <code>hr</code> </td></tr> <tr><td valign="top"><em><a class="anchor" name="2956e51b12617b7fbc415c6c4c1d2fdcb84e58cad176683095b9a453bb29090d"></a><!-- doxytag: member="eBoolean" ref="2956e51b12617b7fbc415c6c4c1d2fdcb84e58cad176683095b9a453bb29090d" args="" -->eBoolean</em> </td><td> Boolean element, such as <code>strong</code> </td></tr> </table> </dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00071">71</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="53d2642fbf92d7113852081373437ca7"></a><!-- doxytag: member="cgicc::HTMLElement::HTMLElement" ref="53d2642fbf92d7113852081373437ca7" args="(const HTMLElement &element)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">cgicc::HTMLElement::HTMLElement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Copy constructor. <p> Sets the name and internal state of this element to those of <code>element</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>element</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to copy. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="7cc7ea295b5dee9b9a0c3a78a9df837f"></a><!-- doxytag: member="cgicc::HTMLElement::~HTMLElement" ref="7cc7ea295b5dee9b9a0c3a78a9df837f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual cgicc::HTMLElement::~HTMLElement </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> Delete this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> object </div> </div><p> <a class="anchor" name="c8ade6f17edb24907da86fda19c5b075"></a><!-- doxytag: member="cgicc::HTMLElement::HTMLElement" ref="c8ade6f17edb24907da86fda19c5b075" args="(const HTMLAttributeList *attributes, const HTMLElement *embedded, const std::string *data, EElementType type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">cgicc::HTMLElement::HTMLElement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> * </td> <td class="paramname"> <em>attributes</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> * </td> <td class="paramname"> <em>embedded</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">EElementType</a> </td> <td class="paramname"> <em>type</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Subclass constructor. <p> This allows the subclasses to fully specify all properties <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>A pointer to an <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> containing the HTMLAttributes for this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>, if any </td></tr> <tr><td valign="top"></td><td valign="top"><em>embedded</em> </td><td>A pointer to the embedded <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>, if any </td></tr> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>A pointer to the data, if any </td></tr> <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The type of element </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e605b1b91f7d148cef61104bb302bd00"></a><!-- doxytag: member="cgicc::HTMLElement::add" ref="e605b1b91f7d148cef61104bb302bd00" args="(HTMLElement *element)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>& cgicc::HTMLElement::add </td> <td>(</td> <td class="paramtype"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> * </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Add an embedded <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> in this one. <p> This element takes ownership of <code>element</code>, which should not be deleted. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>element</em> </td><td>A pointer to an <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to embed. </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="9c1d529f958121713ad70500185ac362"></a><!-- doxytag: member="cgicc::HTMLElement::add" ref="9c1d529f958121713ad70500185ac362" args="(const HTMLElement &element)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>& cgicc::HTMLElement::add </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Add an embedded <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> in this one. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>element</em> </td><td>A reference to an <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to embed in this one </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="4f16912ad3a88ede11ba800f4572f1bf"></a><!-- doxytag: member="cgicc::HTMLElement::clone" ref="4f16912ad3a88ede11ba800f4572f1bf" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>* cgicc::HTMLElement::clone </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Clone this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <p> This performs a deep copy of the element <dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to a newly-allocated copy of <code>this</code>. </dd></dl> <p>Implemented in <a class="el" href="classcgicc_1_1HTMLAtomicElement.html#4d616355b6151c3e531ec4c3a25065be">cgicc::HTMLAtomicElement< Tag ></a>, <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#8dc8e85909b7f99edaf2a0d15cbd4cca">cgicc::HTMLBooleanElement< Tag ></a>, and <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#8dc8e85909b7f99edaf2a0d15cbd4cca">cgicc::HTMLBooleanElement< nullTag ></a>.</p> </div> </div><p> <a class="anchor" name="d48bd23233ed9ec4178ef97112523cf9"></a><!-- doxytag: member="cgicc::HTMLElement::dataSpecified" ref="d48bd23233ed9ec4178ef97112523cf9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cgicc::HTMLElement::dataSpecified </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> For subclasses only. <p> Returns <code>true</code> if data was specified in the constructor. <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if data was specified in the constructor, <code>false</code> otherwise </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00367">367</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="d30265702bd576bb53ae024372f9ab06"></a><!-- doxytag: member="cgicc::HTMLElement::getAttributes" ref="d30265702bd576bb53ae024372f9ab06" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a>* cgicc::HTMLElement::getAttributes </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the attributes associated with this element. <p> If this method returns 0, no attributes are embedded <dl class="return" compact><dt><b>Returns:</b></dt><dd>The attribute list. </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00271">271</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="ca7872f9a0af5d68b3f291864d170c6f"></a><!-- doxytag: member="cgicc::HTMLElement::getData" ref="ca7872f9a0af5d68b3f291864d170c6f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string cgicc::HTMLElement::getData </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the data contained in this element, if any. <p> This is only applicable for boolean elements <dl class="return" compact><dt><b>Returns:</b></dt><dd>The data contained in this element. </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00166">166</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="8ce9f5d9d8fc44d86f1ac9e6e3b98966"></a><!-- doxytag: member="cgicc::HTMLElement::getEmbedded" ref="8ce9f5d9d8fc44d86f1ac9e6e3b98966" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classcgicc_1_1HTMLElementList.html">HTMLElementList</a>* cgicc::HTMLElement::getEmbedded </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the <a class="el" href="classcgicc_1_1HTMLElementList.html" title="An expandable list of HTMLElement objects.">HTMLElementList</a> embedded in this element, if any. <p> If this method returns 0, no elements are embedded <dl class="return" compact><dt><b>Returns:</b></dt><dd>The embedded element list. </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00223">223</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="8b8aea571cff9be2e0477cab4256b1d1"></a><!-- doxytag: member="cgicc::HTMLElement::getName" ref="8b8aea571cff9be2e0477cab4256b1d1" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* cgicc::HTMLElement::getName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this element. <p> For example, <code>html</code> or <code>body</code>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The name of this element. </dd></dl> <p>Implemented in <a class="el" href="classcgicc_1_1HTMLAtomicElement.html#902fffaa9afeafd89c88004055fd9558">cgicc::HTMLAtomicElement< Tag ></a>, <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#807cec8c1ff5f62dd1073449ca9e4267">cgicc::HTMLBooleanElement< Tag ></a>, and <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#807cec8c1ff5f62dd1073449ca9e4267">cgicc::HTMLBooleanElement< nullTag ></a>.</p> </div> </div><p> <a class="anchor" name="9640e8bb7736f30acb95b00567ec66fb"></a><!-- doxytag: member="cgicc::HTMLElement::getState" ref="9640e8bb7736f30acb95b00567ec66fb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool cgicc::HTMLElement::getState </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the state of this boolean element. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the element is active, <code>false</code> otherwise </dd></dl> <p>Reimplemented in <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#a98dfc5fe54687c83a624e0d7a4775ae">cgicc::HTMLBooleanElement< Tag ></a>, and <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#a98dfc5fe54687c83a624e0d7a4775ae">cgicc::HTMLBooleanElement< nullTag ></a>.</p> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00330">330</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="59839d795931f744b1c1081b09ac1455"></a><!-- doxytag: member="cgicc::HTMLElement::getType" ref="59839d795931f744b1c1081b09ac1455" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html#2956e51b12617b7fbc415c6c4c1d2fdc">EElementType</a> cgicc::HTMLElement::getType </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the type of this element. <p> Most HTMLElements are boolean <dl class="return" compact><dt><b>Returns:</b></dt><dd>The type of this element </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00176">176</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="9045dbbda7e20ae0fb1fdfbdc6a54921"></a><!-- doxytag: member="cgicc::HTMLElement::operator!=" ref="9045dbbda7e20ae0fb1fdfbdc6a54921" args="(const HTMLElement &element) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cgicc::HTMLElement::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two HTMLElements for inequality. <p> HTMLElements are equal if they have the same name <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>element</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to compare to this one. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>false</code> if the two HTMLElements are equal, <code>true</code> otherwise. </dd></dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00122">122</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="4731e74e7e30b51f815d766bf9a72389"></a><!-- doxytag: member="cgicc::HTMLElement::operator=" ref="4731e74e7e30b51f815d766bf9a72389" args="(const HTMLElement &element)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>& cgicc::HTMLElement::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Assignment operator. <p> Sets the name and internal state of this element to those of <code>element</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>element</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to copy </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="4314bf660a4551af60da2ffc70cb3fa8"></a><!-- doxytag: member="cgicc::HTMLElement::operator==" ref="4314bf660a4551af60da2ffc70cb3fa8" args="(const HTMLElement &element) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool cgicc::HTMLElement::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a> & </td> <td class="paramname"> <em>element</em> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Compare two HTMLElements for equality. <p> HTMLElements are equal if they have the same name <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>element</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a> to compare to this one. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the two HTMLElements are equal, <code>false</code> otherwise. </dd></dl> </div> </div><p> <a class="anchor" name="c17d5128ffb09a6806d6bfeda5ae0d5d"></a><!-- doxytag: member="cgicc::HTMLElement::render" ref="c17d5128ffb09a6806d6bfeda5ae0d5d" args="(std::ostream &out) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void cgicc::HTMLElement::render </td> <td>(</td> <td class="paramtype">std::ostream & </td> <td class="paramname"> <em>out</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Render this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</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> </td><td>The ostream to which to write </td></tr> </table> </dl> <p>Implements <a class="el" href="classcgicc_1_1MStreamable.html#6a4ae7e9c578b44eebf0f04341be74ab">cgicc::MStreamable</a>.</p> </div> </div><p> <a class="anchor" name="f622de1aa8f6dbf7e2cbef5678235077"></a><!-- doxytag: member="cgicc::HTMLElement::set" ref="f622de1aa8f6dbf7e2cbef5678235077" args="(const std::string &name, const std::string &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>& cgicc::HTMLElement::set </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Set an <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> on this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <p> <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> </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> </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </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> </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="a0761d714cec53f4023cd113a38d4809"></a><!-- doxytag: member="cgicc::HTMLElement::set" ref="a0761d714cec53f4023cd113a38d4809" args="(const std::string &name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTMLElement.html">HTMLElement</a>& cgicc::HTMLElement::set </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set an <a class="el" href="classcgicc_1_1HTMLAttribute.html" title="Class representing a name or a single name/value pair.">HTMLAttribute</a> on this <a class="el" href="classcgicc_1_1HTMLElement.html" title="Class representing an HTML element.">HTMLElement</a>. <p> <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> </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> <a class="anchor" name="90dd57f6ecca1ae35774e97c9efcdad2"></a><!-- doxytag: member="cgicc::HTMLElement::setAttributes" ref="90dd57f6ecca1ae35774e97c9efcdad2" args="(const HTMLAttributeList &attributes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cgicc::HTMLElement::setAttributes </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLAttributeList.html">HTMLAttributeList</a> & </td> <td class="paramname"> <em>attributes</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set the attributes associated with this element. <p> This is usually called by subclass constructors <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLAttributeList.html" title="An expandable list of HTMLAttribute objects.">HTMLAttributeList</a> containing the HTMLAttributes belonging to this element. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="67b10a4236c30b0dd9d377894d2a1592"></a><!-- doxytag: member="cgicc::HTMLElement::setData" ref="67b10a4236c30b0dd9d377894d2a1592" args="(const std::string &data)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cgicc::HTMLElement::setData </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>data</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the data contained in this element. <p> The data is the text contained between the opening and closing tags <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The data to store in this element. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00194">194</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <a class="anchor" name="f9fa44bec5c56b3e9d86f13fd3dcab03"></a><!-- doxytag: member="cgicc::HTMLElement::setEmbedded" ref="f9fa44bec5c56b3e9d86f13fd3dcab03" args="(const HTMLElementList &embedded)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cgicc::HTMLElement::setEmbedded </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTMLElementList.html">HTMLElementList</a> & </td> <td class="paramname"> <em>embedded</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set the <a class="el" href="classcgicc_1_1HTMLElementList.html" title="An expandable list of HTMLElement objects.">HTMLElementList</a> associated with this element. <p> This is usually called by subclass constructors <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>embedded</em> </td><td>The <a class="el" href="classcgicc_1_1HTMLElementList.html" title="An expandable list of HTMLElement objects.">HTMLElementList</a> containing the HTMLElements embedded in this element. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="5ce5bbf51b630b1073e359dbac58ea03"></a><!-- doxytag: member="cgicc::HTMLElement::swapState" ref="5ce5bbf51b630b1073e359dbac58ea03" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void cgicc::HTMLElement::swapState </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Swap the state of the boolean element. <p> A state of <code>true</code> means the element is active <p>Reimplemented in <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#073fda8aab69ebb0f0b77b2f5550808c">cgicc::HTMLBooleanElement< Tag ></a>, and <a class="el" href="classcgicc_1_1HTMLBooleanElement.html#073fda8aab69ebb0f0b77b2f5550808c">cgicc::HTMLBooleanElement< nullTag ></a>.</p> <p>Definition at line <a class="el" href="HTMLElement_8h_source.html#l00320">320</a> of file <a class="el" href="HTMLElement_8h_source.html">HTMLElement.h</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="HTMLElement_8h_source.html">HTMLElement.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 © 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>