<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>FONTAINE: FXHTMLR.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">FONTAINE <span id="projectnumber">1.0</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>FXHTMLR.h</h1> </div> </div> <div class="contents"> <a href="FXHTMLR_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span> <a name="l00002"></a>00002 <span class="comment">// The Fontaine Font Analysis Project </span> <a name="l00003"></a>00003 <span class="comment">// </span> <a name="l00004"></a>00004 <span class="comment">// Copyright (c) 2009 by Edward H. Trager</span> <a name="l00005"></a>00005 <span class="comment">// All Rights Reserved</span> <a name="l00006"></a>00006 <span class="comment">// </span> <a name="l00007"></a>00007 <span class="comment">// Released under the GNU GPL version 2.0 or later.</span> <a name="l00008"></a>00008 <span class="comment">// </span> <a name="l00009"></a>00009 <a name="l00010"></a>00010 <a name="l00011"></a>00011 <span class="comment">//</span> <a name="l00012"></a>00012 <span class="comment">// FXHTMLR.h -- Basic XHTML Report</span> <a name="l00013"></a>00013 <span class="comment">//</span> <a name="l00014"></a>00014 <a name="l00015"></a>00015 <span class="preprocessor">#ifndef FXHTMLR_INCLUDED</span> <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define FXHTMLR_INCLUDED</span> <a name="l00017"></a>00017 <span class="preprocessor"></span> <a name="l00018"></a>00018 <span class="preprocessor">#include <string></span> <a name="l00019"></a>00019 <span class="preprocessor">#include <sstream></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="MLR_8h.html">MLR.h</a>"</span> <a name="l00021"></a>00021 <a name="l00022"></a><a class="code" href="classFontSentenceParameters.html">00022</a> <span class="keyword">class </span><a class="code" href="classFontSentenceParameters.html">FontSentenceParameters</a>{ <a name="l00023"></a>00023 <span class="keyword">public</span>: <a name="l00024"></a><a class="code" href="classFontSentenceParameters.html#a199564205d55c06fdbb7a75428fcef42">00024</a> std::string <a class="code" href="classFontSentenceParameters.html#a199564205d55c06fdbb7a75428fcef42">commonName</a>; <a name="l00025"></a><a class="code" href="classFontSentenceParameters.html#a09e625169e0f98c84653fd05d8f384df">00025</a> std::string <a class="code" href="classFontSentenceParameters.html#a09e625169e0f98c84653fd05d8f384df">nativeName</a>; <a name="l00026"></a><a class="code" href="classFontSentenceParameters.html#aee2d2c25b8681a3f631ca71ad30b76ac">00026</a> std::string <a class="code" href="classFontSentenceParameters.html#aee2d2c25b8681a3f631ca71ad30b76ac">supportLevel</a>; <a name="l00027"></a><a class="code" href="classFontSentenceParameters.html#a470b15f541e86e0b0fa2c57ae1625cd7">00027</a> std::string <a class="code" href="classFontSentenceParameters.html#a470b15f541e86e0b0fa2c57ae1625cd7">percentCoverage</a>; <a name="l00028"></a>00028 <a name="l00029"></a><a class="code" href="classFontSentenceParameters.html#a44b2c399ed8b2ecc041d6d1096f9e94b">00029</a> <span class="keywordtype">void</span> <a class="code" href="classFontSentenceParameters.html#a44b2c399ed8b2ecc041d6d1096f9e94b">clear</a>(<span class="keywordtype">void</span>){ <a name="l00030"></a>00030 <a name="l00031"></a>00031 <a class="code" href="classFontSentenceParameters.html#a199564205d55c06fdbb7a75428fcef42">commonName</a>.clear(); <a name="l00032"></a>00032 <a class="code" href="classFontSentenceParameters.html#a09e625169e0f98c84653fd05d8f384df">nativeName</a>.clear(); <a name="l00033"></a>00033 <a class="code" href="classFontSentenceParameters.html#aee2d2c25b8681a3f631ca71ad30b76ac">supportLevel</a>.clear(); <a name="l00034"></a>00034 <a class="code" href="classFontSentenceParameters.html#a470b15f541e86e0b0fa2c57ae1625cd7">percentCoverage</a>.clear(); <a name="l00035"></a>00035 <a name="l00036"></a>00036 }; <a name="l00037"></a>00037 <a name="l00038"></a>00038 }; <a name="l00039"></a>00039 <a name="l00040"></a><a class="code" href="classFXHTMLR.html">00040</a> <span class="keyword">class </span><a class="code" href="classFXHTMLR.html">FXHTMLR</a> : <span class="keyword">public</span> <a class="code" href="classMLR.html">MLR</a> { <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keyword">protected</span>: <a name="l00043"></a>00043 <a name="l00044"></a><a class="code" href="classFXHTMLR.html#a2641fbd8d985bf9aef058e4c397b2f79">00044</a> std::string <a class="code" href="classFXHTMLR.html#a2641fbd8d985bf9aef058e4c397b2f79">_startTag</a>; <a name="l00045"></a><a class="code" href="classFXHTMLR.html#a556fef713930ba7d3e242c2904ec771b">00045</a> std::string <a class="code" href="classFXHTMLR.html#a556fef713930ba7d3e242c2904ec771b">_keyValuePairTag</a>; <a name="l00046"></a><a class="code" href="classFXHTMLR.html#a97ba01c825b77ccb0558d5047d7f12b0">00046</a> std::string <a class="code" href="classFXHTMLR.html#a97ba01c825b77ccb0558d5047d7f12b0">_startListTag</a>; <a name="l00047"></a><a class="code" href="classFXHTMLR.html#a55de5b86ec3d0714419a485a391c02a0">00047</a> std::string <a class="code" href="classFXHTMLR.html#a55de5b86ec3d0714419a485a391c02a0">_listItemTag</a>; <a name="l00048"></a>00048 <a name="l00049"></a><a class="code" href="classFXHTMLR.html#a4ac524bc7b1e1a7235d80ad1047cc23a">00049</a> <a class="code" href="classFontSentenceParameters.html">FontSentenceParameters</a> <a class="code" href="classFXHTMLR.html#a4ac524bc7b1e1a7235d80ad1047cc23a">_fsp</a>; <a name="l00050"></a>00050 <a name="l00051"></a><a class="code" href="classFXHTMLR.html#af073101b5ad4bba48d64588cef8cd66b">00051</a> std::ostringstream <a class="code" href="classFXHTMLR.html#af073101b5ad4bba48d64588cef8cd66b">_introSection</a>; <a name="l00052"></a><a class="code" href="classFXHTMLR.html#a48081116c9db552c63bf6676edcdccbd">00052</a> std::ostringstream <a class="code" href="classFXHTMLR.html#a48081116c9db552c63bf6676edcdccbd">_iconSection</a>; <a name="l00053"></a><a class="code" href="classFXHTMLR.html#ae01066ec0f8b9eceadea9c1e657f41b0">00053</a> std::ostringstream <a class="code" href="classFXHTMLR.html#ae01066ec0f8b9eceadea9c1e657f41b0">_expandedSection</a>; <a name="l00054"></a>00054 <a name="l00055"></a>00055 <span class="keyword">public</span>: <a name="l00056"></a>00056 <a name="l00057"></a>00057 <a class="code" href="classFXHTMLR.html#ac0fa765fad0817dbfeebd419c587d94d">FXHTMLR</a>(); <a name="l00058"></a>00058 <a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a4a26702cff7caf4a0c04f26ac7719930">startRoot</a>(<span class="keywordtype">void</span>); <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a3961789fbfb535689c0c307ebc53e34f">endRoot</a>(<span class="keywordtype">void</span>); <a name="l00061"></a>00061 <a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#abe346a70da4e464a37665c0e94f2d63f">startList</a>(<span class="keyword">const</span> std::string &key); <a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a8cd2ced1890a54df9068dbc8a0de88c3">addKeyValuePairToList</a>(<span class="keyword">const</span> std::string &key,<span class="keyword">const</span> std::string &value); <a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a804913c610ad20cf804b794e5d741c31">endList</a>(<span class="keyword">const</span> std::string &key); <a name="l00065"></a>00065 <a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a1d455b678497c7228c614a15c5ed64e4">start</a>(<span class="keyword">const</span> std::string &key); <a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a3587c072e7159d00324c35053005889f">addKeyValuePair</a>(<span class="keyword">const</span> std::string &key,<span class="keyword">const</span> std::string &value); <a name="l00068"></a>00068 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#ae41d4739830c32a3baf4a3635fb5f764">end</a>(<span class="keyword">const</span> std::string &key); <a name="l00069"></a>00069 <a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#abe346a70da4e464a37665c0e94f2d63f">startList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key); <a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a8cd2ced1890a54df9068dbc8a0de88c3">addKeyValuePairToList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key,<span class="keyword">const</span> <span class="keywordtype">char</span> *value); <a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a804913c610ad20cf804b794e5d741c31">endList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key); <a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a1d455b678497c7228c614a15c5ed64e4">start</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key); <a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a3587c072e7159d00324c35053005889f">addKeyValuePair</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key,<span class="keyword">const</span> <span class="keywordtype">char</span> *value); <a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#ae41d4739830c32a3baf4a3635fb5f764">end</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key); <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a48403c6d0d40fae115e1271b78573135">setStartTag</a>(<span class="keyword">const</span> std::string &s); <a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a94b7cf7fcadf301ab2f8157b3f81ba40">setKeyValuePairTag</a>(<span class="keyword">const</span> std::string &s); <a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a2264c8f86eed522b54c94756a3c1a6a0">setStartListTag</a>(<span class="keyword">const</span> std::string &s); <a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#adbbc9cd374b093424991e0e588bd0a69">setListItemTag</a>(<span class="keyword">const</span> std::string &s); <a name="l00082"></a>00082 <span class="comment">// const char * versions:</span> <a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a48403c6d0d40fae115e1271b78573135">setStartTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s); <a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a94b7cf7fcadf301ab2f8157b3f81ba40">setKeyValuePairTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s); <a name="l00085"></a>00085 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#a2264c8f86eed522b54c94756a3c1a6a0">setStartListTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s); <a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="classFXHTMLR.html#adbbc9cd374b093424991e0e588bd0a69">setListItemTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s); <a name="l00087"></a>00087 <a name="l00088"></a>00088 }; <a name="l00089"></a>00089 <a name="l00090"></a>00090 <span class="preprocessor">#endif</span> <a name="l00091"></a>00091 <span class="preprocessor"></span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Feb 8 2011 for FONTAINE by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>