<!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::HTMLDoctype 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_1HTMLDoctype.html">HTMLDoctype</a> </div> </div> <div class="contents"> <h1>cgicc::HTMLDoctype Class Reference</h1><!-- doxytag: class="cgicc::HTMLDoctype" --><!-- doxytag: inherits="cgicc::MStreamable" -->Specifies the DTD of the HTML 4 document. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="HTMLDoctype_8h_source.html">cgicc/HTMLDoctype.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for cgicc::HTMLDoctype:</div> <div class="dynsection"> <p><center><img src="classcgicc_1_1HTMLDoctype.png" usemap="#cgicc::HTMLDoctype_map" border="0" alt=""></center> <map name="cgicc::HTMLDoctype_map"> <area href="classcgicc_1_1MStreamable.html" alt="cgicc::MStreamable" shape="rect" coords="0,0,130,24"> </map> </div> <p> <a href="classcgicc_1_1HTMLDoctype-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_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c">EDocumentType</a> { <a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485cc7af014bee2e837c87cb98492b32d9c7">eStrict</a>, <a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c52f3aff8b7fa65d41688f7f24fcd9eb2">eTransitional</a>, <a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c252b03edb5256f68c32186e18870310a">eFrames</a> }</td></tr> <tr><td colspan="2"><br><h2>Public 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_1HTMLDoctype.html#5816d5db23dc987021a3fc58df504f05">HTMLDoctype</a> (<a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c">EDocumentType</a> type=eStrict)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#5816d5db23dc987021a3fc58df504f05"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="499f771393306715655cd6647e60aa99"></a><!-- doxytag: member="cgicc::HTMLDoctype::~HTMLDoctype" ref="499f771393306715655cd6647e60aa99" args="()" --> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTMLDoctype.html#499f771393306715655cd6647e60aa99">~HTMLDoctype</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <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_1HTMLDoctype.html#0c8af960941daa06ae11003faed722e9">render</a> (std::ostream &out) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write this object to a stream. <a href="#0c8af960941daa06ae11003faed722e9"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Specifies the DTD of the HTML 4 document. <p> To use this class, simply write an object of this type to an ostream: <div class="fragment"><pre class="fragment"> out << <a class="code" href="classcgicc_1_1HTMLDoctype.html#5816d5db23dc987021a3fc58df504f05" title="Constructor.">cgicc::HTMLDoctype</a>(); </pre></div> For more information, see <code><a href="http://www.w3.org/MarkUp/">http://www.w3.org/MarkUp/</a></code> and <code><a href="http://www.w3.org/TR/REC-html40/">http://www.w3.org/TR/REC-html40/</a></code> <p>Definition at line <a class="el" href="HTMLDoctype_8h_source.html#l00056">56</a> of file <a class="el" href="HTMLDoctype_8h_source.html">HTMLDoctype.h</a>.</p> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="3dfa88e210d9a8d19d47196a554e485c"></a><!-- doxytag: member="cgicc::HTMLDoctype::EDocumentType" ref="3dfa88e210d9a8d19d47196a554e485c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c">cgicc::HTMLDoctype::EDocumentType</a> </td> </tr> </table> </div> <div class="memdoc"> <p> The DTD used by this document. <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="3dfa88e210d9a8d19d47196a554e485cc7af014bee2e837c87cb98492b32d9c7"></a><!-- doxytag: member="eStrict" ref="3dfa88e210d9a8d19d47196a554e485cc7af014bee2e837c87cb98492b32d9c7" args="" -->eStrict</em> </td><td> The HTML 4.0 strict DTD (the default) </td></tr> <tr><td valign="top"><em><a class="anchor" name="3dfa88e210d9a8d19d47196a554e485c52f3aff8b7fa65d41688f7f24fcd9eb2"></a><!-- doxytag: member="eTransitional" ref="3dfa88e210d9a8d19d47196a554e485c52f3aff8b7fa65d41688f7f24fcd9eb2" args="" -->eTransitional</em> </td><td> The HTML 4.0 Transitional DTD </td></tr> <tr><td valign="top"><em><a class="anchor" name="3dfa88e210d9a8d19d47196a554e485c252b03edb5256f68c32186e18870310a"></a><!-- doxytag: member="eFrames" ref="3dfa88e210d9a8d19d47196a554e485c252b03edb5256f68c32186e18870310a" args="" -->eFrames</em> </td><td> The HTML 4.0 Frameset DTD </td></tr> </table> </dl> <p>Definition at line <a class="el" href="HTMLDoctype_8h_source.html#l00061">61</a> of file <a class="el" href="HTMLDoctype_8h_source.html">HTMLDoctype.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="5816d5db23dc987021a3fc58df504f05"></a><!-- doxytag: member="cgicc::HTMLDoctype::HTMLDoctype" ref="5816d5db23dc987021a3fc58df504f05" args="(EDocumentType type=eStrict)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">cgicc::HTMLDoctype::HTMLDoctype </td> <td>(</td> <td class="paramtype"><a class="el" href="classcgicc_1_1HTMLDoctype.html#3dfa88e210d9a8d19d47196a554e485c">EDocumentType</a> </td> <td class="paramname"> <em>type</em> = <code>eStrict</code> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <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>type</em> </td><td>The version of the HTML 4.0 DTD used by this document. </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="0c8af960941daa06ae11003faed722e9"></a><!-- doxytag: member="cgicc::HTMLDoctype::render" ref="0c8af960941daa06ae11003faed722e9" args="(std::ostream &out) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void cgicc::HTMLDoctype::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> Write this object to a stream. <p> Subclasses must implement this function. <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> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="HTMLDoctype_8h_source.html">HTMLDoctype.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>