<!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>html.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.10 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>html.h</h1><a href="html_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">// Copyright (C) 1999-2001 Open Source Telecom Corporation.</font> 00002 <font class="comment">// </font> 00003 <font class="comment">// This program is free software; you can redistribute it and/or modify</font> 00004 <font class="comment">// it under the terms of the GNU General Public License as published by</font> 00005 <font class="comment">// the Free Software Foundation; either version 2 of the License, or</font> 00006 <font class="comment">// (at your option) any later version.</font> 00007 <font class="comment">// </font> 00008 <font class="comment">// This program is distributed in the hope that it will be useful,</font> 00009 <font class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</font> 00010 <font class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</font> 00011 <font class="comment">// GNU General Public License for more details.</font> 00012 <font class="comment">// </font> 00013 <font class="comment">// You should have received a copy of the GNU General Public License</font> 00014 <font class="comment">// along with this program; if not, write to the Free Software </font> 00015 <font class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</font> 00016 <font class="comment">// </font> 00017 <font class="comment">// As a special exception to the GNU General Public License, permission is </font> 00018 <font class="comment">// granted for additional uses of the text contained in its release </font> 00019 <font class="comment">// of Common C++.</font> 00020 <font class="comment">// </font> 00021 <font class="comment">// The exception is that, if you link the Common C++ library with other</font> 00022 <font class="comment">// files to produce an executable, this does not by itself cause the</font> 00023 <font class="comment">// resulting executable to be covered by the GNU General Public License.</font> 00024 <font class="comment">// Your use of that executable is in no way restricted on account of</font> 00025 <font class="comment">// linking the Common C++ library code into it.</font> 00026 <font class="comment">// </font> 00027 <font class="comment">// This exception does not however invalidate any other reasons why</font> 00028 <font class="comment">// the executable file might be covered by the GNU General Public License.</font> 00029 <font class="comment">// </font> 00030 <font class="comment">// This exception applies only to the code released under the </font> 00031 <font class="comment">// name Common C++. If you copy code from other releases into a copy of</font> 00032 <font class="comment">// Common C++, as the General Public License permits, the exception does</font> 00033 <font class="comment">// not apply to the code that you add in this way. To avoid misleading</font> 00034 <font class="comment">// anyone as to the status of such modified files, you must delete</font> 00035 <font class="comment">// this exception notice from them.</font> 00036 <font class="comment">// </font> 00037 <font class="comment">// If you write modifications of your own for Common C++, it is your choice</font> 00038 <font class="comment">// whether to permit this exception to apply to your modifications.</font> 00039 <font class="comment">// If you do not wish that, delete this exception notice. </font> 00040 00041 <font class="preprocessor">#ifndef __CCXX_HTML_H__</font> 00042 <font class="preprocessor"></font><font class="preprocessor">#define __CCXX_MTML_H__</font> 00043 <font class="preprocessor"></font> 00044 <font class="preprocessor">#ifndef __CCXX_PERSIST_H__</font> 00045 <font class="preprocessor"></font><font class="preprocessor">#include <<a class="code" href="persist_8h.html">cc++/persist.h</a>></font> 00046 <font class="preprocessor">#endif</font> 00047 <font class="preprocessor"></font> 00048 <font class="preprocessor">#include <vector></font> 00049 <font class="preprocessor">#include <map></font> 00050 <font class="preprocessor">#include <string></font> 00051 <a name="l00061"></a><a class="code" href="class_writer.html">00061</a> <font class="keyword">class </font><a class="code" href="class_writer.html">Writer</a> 00062 { 00063 <font class="keyword">public</font>: 00064 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="class_writer.html#a0">WriteSomeOutput</a>(<font class="keyword">const</font> string& stuff, <font class="keywordtype">bool</font> newLine); 00065 }; 00066 <a name="l00079"></a><a class="code" href="class_entity.html">00079</a> <font class="keyword">class </font><a class="code" href="class_entity.html">Entity</a> : <font class="keyword">public</font> <a class="code" href="class_base_object.html">BaseObject</a> 00080 { 00081 DECLARE_PERSISTENCE(<a class="code" href="class_entity.html">Entity</a>) 00082 <font class="keyword">public</font>: 00083 Entity(); 00089 Entity(<font class="keyword">const</font> string& name); 00090 <font class="keyword">virtual</font> ~Entity(); 00091 00096 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="class_base_object.html#a3">Write</a>(<a class="code" href="class_engine.html">Engine</a>& archive) <font class="keyword">const</font>; 00097 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="class_base_object.html#a4">Read</a>(<a class="code" href="class_engine.html">Engine</a>& archive); 00098 00104 <font class="keyword">virtual</font> <font class="keywordtype">void</font> OutputHTML(<a class="code" href="class_writer.html">Writer</a>& wr) <font class="keyword">const</font>; 00105 00106 <font class="keyword">protected</font>: 00107 <font class="comment">// Typedefs</font> 00108 <font class="keyword">typedef</font> vector<string> Strings; 00109 <font class="keyword">typedef</font> map<string,string> StringMap; 00110 <font class="keyword">typedef</font> vector<Entity*> Entities; 00111 00116 Strings & GetAttributes()<font class="keyword"> </font>{ <font class="keywordflow">return</font> myAttributes; } 00117 00122 StringMap & GetSettings()<font class="keyword"> </font>{ <font class="keywordflow">return</font> mySettings; } 00123 00127 string & GetContent()<font class="keyword"> </font>{ <font class="keywordflow">return</font> myContent; } 00128 00132 <font class="keywordtype">void</font> SetWhetherTerminated(<font class="keywordtype">bool</font> yesno)<font class="keyword"> </font>{ myTerminated = yesno; } 00133 <font class="keywordtype">bool</font> GetWhetherTerminated()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> myTerminated; } 00134 00139 Entities & GetEntities()<font class="keyword"> </font>{ <font class="keywordflow">return</font> myEntities; } 00140 00145 <font class="keywordtype">void</font> SetNewlineAfterTag(<font class="keywordtype">bool</font> yesno)<font class="keyword"> </font>{ myNewLine = yesno; } 00146 <font class="keywordtype">bool</font> GetNewlineAfterTag()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> myNewLine; } 00147 00148 <font class="keyword">private</font>: 00149 string myName; 00150 string myContent; 00151 Strings myAttributes; 00152 StringMap mySettings; 00153 <font class="keywordtype">bool</font> myTerminated; 00154 <font class="keywordtype">bool</font> myNewLine; 00155 Entities myEntities; 00156 }; 00157 00158 <font class="comment">// Forward declarations...</font> 00159 00160 <font class="keyword">class </font><a class="code" href="class_head.html">Head</a>; 00161 <font class="keyword">class </font><a class="code" href="class_body.html">Body</a>; 00162 <a name="l00174"></a><a class="code" href="class_h_t_m_l_document.html">00174</a> <font class="keyword">class </font><a class="code" href="class_h_t_m_l_document.html">HTMLDocument</a> : <font class="keyword">public</font> <a class="code" href="class_entity.html">Entity</a> 00175 { 00176 DECLARE_PERSISTENCE(<a class="code" href="class_h_t_m_l_document.html">HTMLDocument</a>) 00177 <font class="keyword">public</font>: 00178 HTMLDocument(); 00179 <font class="keyword">virtual</font> ~HTMLDocument(); 00180 00181 HTMLDocument(<font class="keywordtype">bool</font> frameset); 00187 <a class="code" href="class_head.html">Head</a>& GetHeadEntity(); 00193 <a class="code" href="class_body.html">Body</a>& GetBodyEntity(); 00194 00198 <font class="keyword">virtual</font> <font class="keywordtype">void</font> OutputHTML(<a class="code" href="class_writer.html">Writer</a>& wr) <font class="keyword">const</font>; 00199 }; 00200 <a name="l00209"></a><a class="code" href="class_head.html">00209</a> <font class="keyword">class </font><a class="code" href="class_head.html">Head</a> : <font class="keyword">public</font> <a class="code" href="class_entity.html">Entity</a> 00210 { 00211 DECLARE_PERSISTENCE(<a class="code" href="class_head.html">Head</a>) 00212 <font class="keyword">public</font>: 00213 Head(); 00214 ~Head(); 00215 }; 00216 <a name="l00223"></a><a class="code" href="class_body.html">00223</a> <font class="keyword">class </font><a class="code" href="class_body.html">Body</a> : <font class="keyword">public</font> <a class="code" href="class_entity.html">Entity</a> 00224 { 00225 DECLARE_PERSISTENCE(<a class="code" href="class_body.html">Body</a>) 00226 <font class="keyword">public</font>: 00227 Body(); 00228 ~Body(); 00229 }; 00230 <a name="l00241"></a><a class="code" href="class_frameset.html">00241</a> <font class="keyword">class </font><a class="code" href="class_frameset.html">Frameset</a> : <font class="keyword">public</font> <a class="code" href="class_body.html">Body</a> 00242 { 00243 DECLARE_PERSISTENCE(<a class="code" href="class_frameset.html">Frameset</a>) 00244 <font class="keyword">public</font>: 00245 Frameset(); 00246 ~Frameset(); 00247 }; 00248 00249 <font class="preprocessor">#endif</font> 00250 <font class="preprocessor"></font> </pre></div><hr><address><small>Generated at Tue Oct 16 11:17:16 2001 for CommonC++ 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.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>