Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > aaf33964de706a538481c929c1da6a44 > files > 3085

faust-doc-0.9.10-5mdv2010.1.x86_64.rpm

<!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>FAUST compiler: description.cpp 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.6.3 -->
<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="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>description.cpp</h1><a href="description_8cpp.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">// generation of an xml description</span>
<a name="l00003"></a>00003 <span class="comment">//------------------------------------</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="description_8hh.html">description.hh</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="Text_8hh.html">Text.hh</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00015"></a><a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075">00015</a> <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075" title="rmWhiteSpaces(): Remove the leading and trailing white spaces of a string (but not...">rmWhiteSpaces</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; s)
<a name="l00016"></a>00016 {
<a name="l00017"></a>00017     <span class="keywordtype">size_t</span> i = s.find_first_not_of(<span class="stringliteral">&quot; \t&quot;</span>);
<a name="l00018"></a>00018     <span class="keywordtype">size_t</span> j = s.find_last_not_of(<span class="stringliteral">&quot; \t&quot;</span>);
<a name="l00019"></a>00019 
<a name="l00020"></a>00020     <span class="keywordflow">if</span> ( (i != string::npos) &amp; (j != string::npos) ) {
<a name="l00021"></a>00021         <span class="keywordflow">return</span> s.substr(i, 1+j-i);
<a name="l00022"></a>00022     } <span class="keywordflow">else</span> {
<a name="l00023"></a>00023         <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>;
<a name="l00024"></a>00024     }
<a name="l00025"></a>00025 }
<a name="l00026"></a>00026 
<a name="l00030"></a><a class="code" href="description_8cpp.html#af40d9db717982956ede067d6eeab6105">00030</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="description_8cpp.html#af40d9db717982956ede067d6eeab6105" title="Extracts metdata from a label : &amp;#39;vol [unit: dB]&amp;#39; -&amp;gt; &amp;#39;vol&amp;#39; + metadata...">extractMetadata</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; fulllabel, <span class="keywordtype">string</span>&amp; label, map&lt;<span class="keywordtype">string</span>, set&lt;string&gt; &gt;&amp; metadata)
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032     <span class="keyword">enum</span> {kLabel, kEscape1, kEscape2, kEscape3, kKey, kValue};
<a name="l00033"></a>00033     <span class="keywordtype">int</span> state = kLabel; <span class="keywordtype">int</span> deep = 0;
<a name="l00034"></a>00034     <span class="keywordtype">string</span> key, value;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i &lt; fulllabel.size(); i++) {
<a name="l00037"></a>00037         <span class="keywordtype">char</span> c = fulllabel[i];
<a name="l00038"></a>00038         <span class="keywordflow">switch</span> (state) {
<a name="l00039"></a>00039             <span class="keywordflow">case</span> kLabel :
<a name="l00040"></a>00040                 assert (deep == 0);
<a name="l00041"></a>00041                 <span class="keywordflow">switch</span> (c) {
<a name="l00042"></a>00042                     <span class="keywordflow">case</span> <span class="charliteral">&#39;\\&#39;</span> : state = kEscape1; <span class="keywordflow">break</span>;
<a name="l00043"></a>00043                     <span class="keywordflow">case</span> <span class="charliteral">&#39;[&#39;</span> : state = kKey; deep++; <span class="keywordflow">break</span>;
<a name="l00044"></a>00044                     <span class="keywordflow">default</span> : label += c;
<a name="l00045"></a>00045                 }
<a name="l00046"></a>00046                 <span class="keywordflow">break</span>;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048             <span class="keywordflow">case</span> kEscape1 :
<a name="l00049"></a>00049                 label += c;
<a name="l00050"></a>00050                 state = kLabel;
<a name="l00051"></a>00051                 <span class="keywordflow">break</span>;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053             <span class="keywordflow">case</span> kEscape2 :
<a name="l00054"></a>00054                 key += c;
<a name="l00055"></a>00055                 state = kKey;
<a name="l00056"></a>00056                 <span class="keywordflow">break</span>;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058             <span class="keywordflow">case</span> kEscape3 :
<a name="l00059"></a>00059                 value += c;
<a name="l00060"></a>00060                 state = kValue;
<a name="l00061"></a>00061                 <span class="keywordflow">break</span>;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063             <span class="keywordflow">case</span> kKey :
<a name="l00064"></a>00064                 assert (deep &gt; 0);
<a name="l00065"></a>00065                 <span class="keywordflow">switch</span> (c) {
<a name="l00066"></a>00066                     <span class="keywordflow">case</span> <span class="charliteral">&#39;\\&#39;</span> :  state = kEscape2;
<a name="l00067"></a>00067                                 <span class="keywordflow">break</span>;
<a name="l00068"></a>00068 
<a name="l00069"></a>00069                     <span class="keywordflow">case</span> <span class="charliteral">&#39;[&#39;</span> :  deep++;
<a name="l00070"></a>00070                                 key += c;
<a name="l00071"></a>00071                                 <span class="keywordflow">break</span>;
<a name="l00072"></a>00072 
<a name="l00073"></a>00073                     <span class="keywordflow">case</span> <span class="charliteral">&#39;:&#39;</span> :  <span class="keywordflow">if</span> (deep == 1) {
<a name="l00074"></a>00074                                     state = kValue;
<a name="l00075"></a>00075                                 } <span class="keywordflow">else</span> {
<a name="l00076"></a>00076                                     key += c;
<a name="l00077"></a>00077                                 }
<a name="l00078"></a>00078                                 <span class="keywordflow">break</span>;
<a name="l00079"></a>00079                     <span class="keywordflow">case</span> <span class="charliteral">&#39;]&#39;</span> :  deep--;
<a name="l00080"></a>00080                                 <span class="keywordflow">if</span> (deep &lt; 1) {
<a name="l00081"></a>00081                                     metadata[<a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075" title="rmWhiteSpaces(): Remove the leading and trailing white spaces of a string (but not...">rmWhiteSpaces</a>(key)].insert(<span class="stringliteral">&quot;&quot;</span>);
<a name="l00082"></a>00082                                     state = kLabel;
<a name="l00083"></a>00083                                     key=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00084"></a>00084                                     value=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00085"></a>00085                                 } <span class="keywordflow">else</span> {
<a name="l00086"></a>00086                                     key += c;
<a name="l00087"></a>00087                                 }
<a name="l00088"></a>00088                                 <span class="keywordflow">break</span>;
<a name="l00089"></a>00089                     <span class="keywordflow">default</span> :   key += c;
<a name="l00090"></a>00090                 }
<a name="l00091"></a>00091                 <span class="keywordflow">break</span>;
<a name="l00092"></a>00092 
<a name="l00093"></a>00093             <span class="keywordflow">case</span> kValue :
<a name="l00094"></a>00094                 assert (deep &gt; 0);
<a name="l00095"></a>00095                 <span class="keywordflow">switch</span> (c) {
<a name="l00096"></a>00096                     <span class="keywordflow">case</span> <span class="charliteral">&#39;\\&#39;</span> : state = kEscape3;
<a name="l00097"></a>00097                                 <span class="keywordflow">break</span>;
<a name="l00098"></a>00098 
<a name="l00099"></a>00099                     <span class="keywordflow">case</span> <span class="charliteral">&#39;[&#39;</span> :  deep++;
<a name="l00100"></a>00100                                 value += c;
<a name="l00101"></a>00101                                 <span class="keywordflow">break</span>;
<a name="l00102"></a>00102 
<a name="l00103"></a>00103                     <span class="keywordflow">case</span> <span class="charliteral">&#39;]&#39;</span> :  deep--;
<a name="l00104"></a>00104                                 <span class="keywordflow">if</span> (deep &lt; 1) {
<a name="l00105"></a>00105                                     metadata[<a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075" title="rmWhiteSpaces(): Remove the leading and trailing white spaces of a string (but not...">rmWhiteSpaces</a>(key)].insert(<a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075" title="rmWhiteSpaces(): Remove the leading and trailing white spaces of a string (but not...">rmWhiteSpaces</a>(value));
<a name="l00106"></a>00106                                     state = kLabel;
<a name="l00107"></a>00107                                     key=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00108"></a>00108                                     value=<span class="stringliteral">&quot;&quot;</span>;
<a name="l00109"></a>00109                                 } <span class="keywordflow">else</span> {
<a name="l00110"></a>00110                                     value += c;
<a name="l00111"></a>00111                                 }
<a name="l00112"></a>00112                                 <span class="keywordflow">break</span>;
<a name="l00113"></a>00113                     <span class="keywordflow">default</span> :   value += c;
<a name="l00114"></a>00114                 }
<a name="l00115"></a>00115                 <span class="keywordflow">break</span>;
<a name="l00116"></a>00116 
<a name="l00117"></a>00117             <span class="keywordflow">default</span> :
<a name="l00118"></a>00118                 cerr &lt;&lt; <span class="stringliteral">&quot;ERROR unrecognized state &quot;</span> &lt;&lt; state &lt;&lt; endl;
<a name="l00119"></a>00119         }
<a name="l00120"></a>00120     }
<a name="l00121"></a>00121     label = <a class="code" href="description_8cpp.html#a96e69d2d939df869ffe8081b135df075" title="rmWhiteSpaces(): Remove the leading and trailing white spaces of a string (but not...">rmWhiteSpaces</a>(label);
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 
<a name="l00128"></a><a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de">00128</a> <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; fullsrc)
<a name="l00129"></a>00129 {
<a name="l00130"></a>00130     map&lt;string, set&lt;string&gt; &gt; metadata;
<a name="l00131"></a>00131     <span class="keywordtype">string</span> dst;
<a name="l00132"></a>00132     <span class="keywordtype">string</span> src;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134     <a class="code" href="description_8cpp.html#af40d9db717982956ede067d6eeab6105" title="Extracts metdata from a label : &amp;#39;vol [unit: dB]&amp;#39; -&amp;gt; &amp;#39;vol&amp;#39; + metadata...">extractMetadata</a>(fullsrc, src, metadata);
<a name="l00135"></a>00135     
<a name="l00136"></a>00136     <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i&lt;src.size(); i++) {
<a name="l00137"></a>00137         <span class="keywordflow">if</span> (src[i] == <span class="charliteral">&#39;&quot;&#39;</span> &amp; (i==0 | i==src.size()-1)) {
<a name="l00138"></a>00138             <span class="comment">// nothing to do just skip the quotes</span>
<a name="l00139"></a>00139         } <span class="keywordflow">else</span> {
<a name="l00140"></a>00140             <span class="keywordflow">switch</span> (src[i]) {
<a name="l00141"></a>00141                 <span class="keywordflow">case</span> <span class="charliteral">&#39;&lt;&#39;</span> : dst += <span class="stringliteral">&quot;&amp;lt;&quot;</span>; <span class="keywordflow">break</span>;
<a name="l00142"></a>00142                 <span class="keywordflow">case</span> <span class="charliteral">&#39;&gt;&#39;</span> : dst += <span class="stringliteral">&quot;&amp;gt;&quot;</span>; <span class="keywordflow">break</span>;
<a name="l00143"></a>00143                 <span class="keywordflow">case</span> <span class="charliteral">&#39;&amp;&#39;</span> : dst += <span class="stringliteral">&quot;&amp;amp;&quot;</span>; <span class="keywordflow">break</span>;
<a name="l00144"></a>00144                 <span class="keywordflow">default</span> :  dst += src[i];
<a name="l00145"></a>00145             }
<a name="l00146"></a>00146         }
<a name="l00147"></a>00147     }
<a name="l00148"></a>00148     <span class="keywordflow">return</span> dst;
<a name="l00149"></a>00149 }
<a name="l00150"></a>00150 
<a name="l00151"></a><a class="code" href="classDescription.html#a6c11e0cfae5c43a8ecd1d89b5046e27c">00151</a> <span class="keywordtype">void</span> <a class="code" href="classDescription.html#a6c11e0cfae5c43a8ecd1d89b5046e27c">Description::print</a>(<span class="keywordtype">int</span> n, ostream&amp; fout)
<a name="l00152"></a>00152 {
<a name="l00153"></a>00153     list&lt;string&gt;::iterator  s;
<a name="l00154"></a>00154     list&lt;int&gt;::iterator     t;
<a name="l00155"></a>00155     
<a name="l00156"></a>00156     <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n,fout); fout &lt;&lt; <span class="stringliteral">&quot;&lt;faust&gt;&quot;</span>;
<a name="l00157"></a>00157         
<a name="l00158"></a>00158         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;name&gt;&quot;</span>        &lt;&lt; <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="classDescription.html#a58cac039b740f54dd0cd3dfbc92bb25d">fName</a>)        &lt;&lt; <span class="stringliteral">&quot;&lt;/name&gt;&quot;</span>;
<a name="l00159"></a>00159         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;author&gt;&quot;</span>      &lt;&lt; <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="classDescription.html#a291979d456c10b6ace3c74558bb7d4ed">fAuthor</a>)      &lt;&lt; <span class="stringliteral">&quot;&lt;/author&gt;&quot;</span>;
<a name="l00160"></a>00160         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;copyright&gt;&quot;</span>   &lt;&lt; <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="classDescription.html#a5b211c2a62d7589276cfdd6f1372dab3">fCopyright</a>)   &lt;&lt; <span class="stringliteral">&quot;&lt;/copyright&gt;&quot;</span>;
<a name="l00161"></a>00161         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;license&gt;&quot;</span>     &lt;&lt; <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="classDescription.html#a62fc97883c3f977d3ff6bfa7d08276dc">fLicense</a>)     &lt;&lt; <span class="stringliteral">&quot;&lt;/license&gt;&quot;</span>;
<a name="l00162"></a>00162         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;version&gt;&quot;</span>     &lt;&lt; <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="classDescription.html#aaed3ca688b0cc05412696f9bf6befb77">fVersion</a>)     &lt;&lt; <span class="stringliteral">&quot;&lt;/version&gt;&quot;</span>;
<a name="l00163"></a>00163         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;inputs&gt;&quot;</span>      &lt;&lt; <a class="code" href="classDescription.html#a6f9ed34a2a89dbc387fb33765d7db3d7">fInputs</a>              &lt;&lt; <span class="stringliteral">&quot;&lt;/inputs&gt;&quot;</span>;
<a name="l00164"></a>00164         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;outputs&gt;&quot;</span>     &lt;&lt; <a class="code" href="classDescription.html#a1bc7370ba7b3857346da9a7e86b75247">fOutputs</a>             &lt;&lt; <span class="stringliteral">&quot;&lt;/outputs&gt;&quot;</span>;
<a name="l00165"></a>00165     
<a name="l00166"></a>00166         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;ui&gt;&quot;</span>;
<a name="l00167"></a>00167 
<a name="l00168"></a>00168             <span class="comment">// active widget list</span>
<a name="l00169"></a>00169             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;activewidgets&gt;&quot;</span>;
<a name="l00170"></a>00170                 <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+3,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;count&gt;&quot;</span> &lt;&lt; <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a> &lt;&lt; <span class="stringliteral">&quot;&lt;/count&gt;&quot;</span>;
<a name="l00171"></a>00171                 <span class="keywordflow">for</span> (s = <a class="code" href="classDescription.html#ae1af3117b045534899e6f6b4936807cc">fActiveLines</a>.begin(); s != <a class="code" href="classDescription.html#ae1af3117b045534899e6f6b4936807cc">fActiveLines</a>.end(); s++) {
<a name="l00172"></a>00172                     <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+3, fout); fout &lt;&lt; *s;
<a name="l00173"></a>00173                 }
<a name="l00174"></a>00174             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;/activewidgets&gt;&quot;</span>;
<a name="l00175"></a>00175 
<a name="l00176"></a>00176             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);
<a name="l00177"></a>00177             
<a name="l00178"></a>00178             <span class="comment">// passive widget list</span>
<a name="l00179"></a>00179             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;passivewidgets&gt;&quot;</span>;
<a name="l00180"></a>00180                 <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+3,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;count&gt;&quot;</span> &lt;&lt; <a class="code" href="classDescription.html#a68f8f8028e88bdfd6e5ad263e152f537">fPassiveWidgetCount</a> &lt;&lt; <span class="stringliteral">&quot;&lt;/count&gt;&quot;</span>;
<a name="l00181"></a>00181                 <span class="keywordflow">for</span> (s = <a class="code" href="classDescription.html#a367a4a65de84819a9fb462d842a52168">fPassiveLines</a>.begin(); s != <a class="code" href="classDescription.html#a367a4a65de84819a9fb462d842a52168">fPassiveLines</a>.end(); s++) {
<a name="l00182"></a>00182                     <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+3, fout); fout &lt;&lt; *s;
<a name="l00183"></a>00183                 }
<a name="l00184"></a>00184             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;/passivewidgets&gt;&quot;</span>;
<a name="l00185"></a>00185     
<a name="l00186"></a>00186             
<a name="l00187"></a>00187             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);
<a name="l00188"></a>00188             
<a name="l00189"></a>00189             <span class="comment">// widget layout </span>
<a name="l00190"></a>00190             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;layout&gt;&quot;</span>;
<a name="l00191"></a>00191                 <span class="keywordflow">for</span> (   t = <a class="code" href="classDescription.html#a3d1ccd57ef5a3c8bd81f08196b3d45cf">fLayoutTabs</a>.begin(), s = <a class="code" href="classDescription.html#a2f39b026a4f3f356895fb624d50581e4">fLayoutLines</a>.begin();
<a name="l00192"></a>00192                         s != <a class="code" href="classDescription.html#a2f39b026a4f3f356895fb624d50581e4">fLayoutLines</a>.end(); t++, s++) {
<a name="l00193"></a>00193                     <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+3+*t, fout); fout &lt;&lt; *s;
<a name="l00194"></a>00194                 }
<a name="l00195"></a>00195             <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+2,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;/layout&gt;&quot;</span>;
<a name="l00196"></a>00196         
<a name="l00197"></a>00197         <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n+1,fout);  fout &lt;&lt; <span class="stringliteral">&quot;&lt;/ui&gt;&quot;</span>;
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 
<a name="l00200"></a>00200     <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">tab</a>(n,fout); fout &lt;&lt; <span class="stringliteral">&quot;&lt;/faust&gt;&quot;</span> &lt;&lt; endl;
<a name="l00201"></a>00201      
<a name="l00202"></a>00202 }
<a name="l00203"></a>00203  
<a name="l00204"></a><a class="code" href="classDescription.html#a7b97643d00e0cc786355a696cac2bcba">00204</a> <span class="keywordtype">void</span> <a class="code" href="classDescription.html#a7b97643d00e0cc786355a696cac2bcba">Description::ui</a>(<a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> t)
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206     <a class="code" href="classDescription.html#aec4af3da05a52adcd7acabf20abdefab">addGroup</a>(0,t);
<a name="l00207"></a>00207 }
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 
<a name="l00210"></a><a class="code" href="classDescription.html#aec4af3da05a52adcd7acabf20abdefab">00210</a> <span class="keywordtype">void</span> <a class="code" href="classDescription.html#aec4af3da05a52adcd7acabf20abdefab">Description::addGroup</a>(<span class="keywordtype">int</span> level, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> t)
<a name="l00211"></a>00211 {
<a name="l00212"></a>00212     <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a>    label, elements, varname, sig;
<a name="l00213"></a>00213     <span class="keyword">const</span> <span class="keywordtype">char</span>* groupnames[] = {<span class="stringliteral">&quot;vgroup&quot;</span>, <span class="stringliteral">&quot;hgroup&quot;</span>, <span class="stringliteral">&quot;tgroup&quot;</span>};
<a name="l00214"></a>00214     
<a name="l00215"></a>00215     <span class="keywordflow">if</span> (<a class="code" href="uitree_8cpp.html#a56c557491c86ba3875400908b273669d">isUiFolder</a>(t, label, elements)) {
<a name="l00216"></a>00216     
<a name="l00217"></a>00217         <span class="keyword">const</span> <span class="keywordtype">int</span>       orient = <a class="code" href="tree_8cpp.html#a523bce65e2a281fe678f2362496061cf" title="if t has a node of type int, return it otherwise error">tree2int</a>(<a class="code" href="list_8hh.html#a626356b3c8f3e0130d0e043a1dd8547c">left</a>(label));
<a name="l00218"></a>00218         <span class="keyword">const</span> <span class="keywordtype">char</span> *    str = <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(<a class="code" href="list_8hh.html#a098460d0916242eebda50610e2a86e39">right</a>(label));
<a name="l00219"></a>00219 
<a name="l00220"></a>00220         <a class="code" href="classDescription.html#ae22f8ef21728df97a42a35669d839f2e">addLayoutLine</a>(level, <a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;group type=\&quot;$0\&quot;&gt;&quot;</span>, groupnames[orient]));
<a name="l00221"></a>00221         <a class="code" href="classDescription.html#ae22f8ef21728df97a42a35669d839f2e">addLayoutLine</a>(level+1, <a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;label&gt;$0&lt;/label&gt;&quot;</span>, <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(str)));
<a name="l00222"></a>00222         <span class="keywordflow">while</span> (!<a class="code" href="list_8hh.html#a2569c3a07bbbfa55e0afde62de62aeec">isNil</a>(elements)) {
<a name="l00223"></a>00223             <a class="code" href="classDescription.html#aec4af3da05a52adcd7acabf20abdefab">addGroup</a>(level+1, <a class="code" href="list_8hh.html#a098460d0916242eebda50610e2a86e39">right</a>(<a class="code" href="list_8hh.html#a067ad6f83087b420a1c44e48e56be389">hd</a>(elements)));
<a name="l00224"></a>00224             elements = <a class="code" href="list_8hh.html#a4075748f5c7156306ec898795313a2e0">tl</a>(elements);
<a name="l00225"></a>00225         }       
<a name="l00226"></a>00226         <a class="code" href="classDescription.html#ae22f8ef21728df97a42a35669d839f2e">addLayoutLine</a>(level, <span class="stringliteral">&quot;&lt;/group&gt;&quot;</span>);
<a name="l00227"></a>00227         
<a name="l00228"></a>00228     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="uitree_8cpp.html#abfe657a3e623626aeecd89b4415c3dc5">isUiWidget</a>(t, label, varname, sig)) {
<a name="l00229"></a>00229             
<a name="l00230"></a>00230         <span class="keywordtype">int</span> w = <a class="code" href="classDescription.html#a09f5e2ad03ae94971d93753dd25a0750">addWidget</a>(label, varname, sig);
<a name="l00231"></a>00231         <a class="code" href="classDescription.html#ae22f8ef21728df97a42a35669d839f2e">addLayoutLine</a>(level, <a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widgetref id=\&quot;$0\&quot; /&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(w)));
<a name="l00232"></a>00232         
<a name="l00233"></a>00233     } <span class="keywordflow">else</span> {
<a name="l00234"></a>00234         
<a name="l00235"></a>00235         fprintf(stderr, <span class="stringliteral">&quot;error in user interface generation 2\n&quot;</span>);
<a name="l00236"></a>00236         exit(1);
<a name="l00237"></a>00237         
<a name="l00238"></a>00238     }
<a name="l00239"></a>00239 }
<a name="l00240"></a>00240 
<a name="l00241"></a><a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">00241</a> <span class="keywordtype">void</span> <a class="code" href="classDescription.html#ac25f80d21c5ac506b47a331de66cff0d">Description::tab</a> (<span class="keywordtype">int</span> n, ostream&amp; fout)
<a name="l00242"></a>00242 {
<a name="l00243"></a>00243     fout &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;
<a name="l00244"></a>00244     <span class="keywordflow">while</span> (n--) fout &lt;&lt; <span class="charliteral">&#39;\t&#39;</span>; 
<a name="l00245"></a>00245 }
<a name="l00246"></a>00246     
<a name="l00247"></a><a class="code" href="classDescription.html#a09f5e2ad03ae94971d93753dd25a0750">00247</a> <span class="keywordtype">int</span> <a class="code" href="classDescription.html#a09f5e2ad03ae94971d93753dd25a0750">Description::addWidget</a>(<a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> label, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> varname, <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> sig)
<a name="l00248"></a>00248 {
<a name="l00249"></a>00249     <a class="code" href="classCTree.html" title="A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches...">Tree</a> path, c, x, y, z;
<a name="l00250"></a>00250     
<a name="l00251"></a>00251     <span class="comment">// add an active widget description</span>
<a name="l00252"></a>00252     
<a name="l00253"></a>00253     <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#a9cb8af593289d910a1f8ec8a9c8d880f">isSigButton</a>(sig, path) )                   {
<a name="l00254"></a>00254     
<a name="l00255"></a>00255         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00256"></a>00256         <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a>++;
<a name="l00257"></a>00257         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;button\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00258"></a>00258             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>, <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00259"></a>00259             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>, <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00260"></a>00260         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00261"></a>00261             
<a name="l00262"></a>00262     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#a48996c1ce74258d499baae3d267078bc">isSigCheckbox</a>(sig, path) )          {
<a name="l00263"></a>00263     
<a name="l00264"></a>00264         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00265"></a>00265         <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a>++;
<a name="l00266"></a>00266         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;checkbox\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00267"></a>00267             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>, <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00268"></a>00268             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>, <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00269"></a>00269         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00270"></a>00270             
<a name="l00271"></a>00271     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#aac990f39e6a1d50e8e1de3b6f7701cfe">isSigVSlider</a>(sig, path,c,x,y,z) )   {
<a name="l00272"></a>00272     
<a name="l00273"></a>00273         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00274"></a>00274         <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a>++;
<a name="l00275"></a>00275         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;vslider\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00276"></a>00276             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>,      <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00277"></a>00277             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>,  <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00278"></a>00278             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;init&gt;$0&lt;/init&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(c))));
<a name="l00279"></a>00279             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;min&gt;$0&lt;/min&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(x))));
<a name="l00280"></a>00280             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;max&gt;$0&lt;/max&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(y))));
<a name="l00281"></a>00281             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;step&gt;$0&lt;/step&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(z))));
<a name="l00282"></a>00282         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00283"></a>00283             
<a name="l00284"></a>00284     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#aaa72c718314a1ba2cee25a95c153e37d">isSigHSlider</a>(sig, path,c,x,y,z) )   {
<a name="l00285"></a>00285     
<a name="l00286"></a>00286         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00287"></a>00287         <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a>++;
<a name="l00288"></a>00288         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;hslider\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00289"></a>00289             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>,      <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00290"></a>00290             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>,  <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00291"></a>00291             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;init&gt;$0&lt;/init&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(c))));
<a name="l00292"></a>00292             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;min&gt;$0&lt;/min&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(x))));
<a name="l00293"></a>00293             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;max&gt;$0&lt;/max&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(y))));
<a name="l00294"></a>00294             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;step&gt;$0&lt;/step&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(z))));
<a name="l00295"></a>00295         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00296"></a>00296             
<a name="l00297"></a>00297     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#aa8476971aba67dfc3af7b5d11f974ef3">isSigNumEntry</a>(sig, path,c,x,y,z) )  {
<a name="l00298"></a>00298     
<a name="l00299"></a>00299         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00300"></a>00300         <a class="code" href="classDescription.html#a43339bc703995b5debe41792036b076a">fActiveWidgetCount</a>++;
<a name="l00301"></a>00301         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;nentry\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00302"></a>00302             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>,      <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00303"></a>00303             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>,  <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00304"></a>00304             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;init&gt;$0&lt;/init&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(c))));
<a name="l00305"></a>00305             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;min&gt;$0&lt;/min&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(x))));
<a name="l00306"></a>00306             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;max&gt;$0&lt;/max&gt;&quot;</span>,          <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(y))));
<a name="l00307"></a>00307             <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;step&gt;$0&lt;/step&gt;&quot;</span>,        <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(z))));
<a name="l00308"></a>00308         <a class="code" href="classDescription.html#a3381a32dd99f3d911eb31a6740db76a5">addActiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00309"></a>00309 
<a name="l00310"></a>00310             
<a name="l00311"></a>00311     <span class="comment">// add a passive widget description</span>
<a name="l00312"></a>00312     
<a name="l00313"></a>00313     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#a667a345cf4efcba00fce5a06bc1e8299">isSigVBargraph</a>(sig,path,x,y,z) )    {
<a name="l00314"></a>00314     
<a name="l00315"></a>00315         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00316"></a>00316         <a class="code" href="classDescription.html#a68f8f8028e88bdfd6e5ad263e152f537">fPassiveWidgetCount</a>++;
<a name="l00317"></a>00317         <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;vbargraph\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00318"></a>00318             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>,     <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00319"></a>00319             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>, <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00320"></a>00320             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;min&gt;$0&lt;/min&gt;&quot;</span>,         <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(x))));
<a name="l00321"></a>00321             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;max&gt;$0&lt;/max&gt;&quot;</span>,         <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(y))));
<a name="l00322"></a>00322         <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00323"></a>00323         
<a name="l00324"></a>00324     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="signals_8cpp.html#a5acf9dd03d1d0032e9486867876f1806">isSigHBargraph</a>(sig,path,x,y,z) )    {
<a name="l00325"></a>00325     
<a name="l00326"></a>00326         <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>++;
<a name="l00327"></a>00327         <a class="code" href="classDescription.html#a68f8f8028e88bdfd6e5ad263e152f537">fPassiveWidgetCount</a>++;
<a name="l00328"></a>00328         <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;&lt;widget type=\&quot;hbargraph\&quot; id=\&quot;$0\&quot;&gt;&quot;</span>, <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>)));
<a name="l00329"></a>00329             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;label&gt;$0&lt;/label&gt;&quot;</span>,     <a class="code" href="description_8cpp.html#a1e3d472857254af93731659f878b78de" title="removes enclosing quotes and transforms &amp;#39;&amp;lt;&amp;#39;, &amp;#39;&amp;gt;&amp;#39; and &amp;#39;&amp;amp;&amp;#39;...">xmlize</a>(<a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(label))));
<a name="l00330"></a>00330             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;varname&gt;$0&lt;/varname&gt;&quot;</span>, <a class="code" href="tree_8cpp.html#ac753d60778175e30a86cba647db017ad" title="if t has a node of type symbol, return its name otherwise error">tree2str</a>(varname)));
<a name="l00331"></a>00331             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;min&gt;$0&lt;/min&gt;&quot;</span>,         <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(x))));
<a name="l00332"></a>00332             <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<a class="code" href="Text_8cpp.html#af50e951c134c2c98c4c75d687f8fca7a">subst</a>(<span class="stringliteral">&quot;\t&lt;max&gt;$0&lt;/max&gt;&quot;</span>,         <a class="code" href="Text_8cpp.html#a16bacb907294be37af81cdf9aff4449a">T</a>(<a class="code" href="tree_8cpp.html#ade36e0f4c45ca9bf2307f972715010c7" title="if t has a node of type float, return it otherwise error">tree2double</a>(y))));
<a name="l00333"></a>00333         <a class="code" href="classDescription.html#a972fddf50a83ee0d9e9de22cebf6ac57">addPassiveLine</a>(<span class="stringliteral">&quot;&lt;/widget&gt;&quot;</span>);
<a name="l00334"></a>00334         
<a name="l00335"></a>00335     } <span class="keywordflow">else</span> {
<a name="l00336"></a>00336         fprintf(stderr, <span class="stringliteral">&quot;Error describing widget : unrecognized expression\n&quot;</span>);
<a name="l00337"></a>00337         exit(1);
<a name="l00338"></a>00338     }
<a name="l00339"></a>00339 
<a name="l00340"></a>00340     <span class="keywordflow">return</span> <a class="code" href="classDescription.html#aabc9e944b1320e8d162f26470c9952fc">fWidgetID</a>;
<a name="l00341"></a>00341 }
<a name="l00342"></a>00342 
<a name="l00343"></a>00343 
<a name="l00344"></a>00344 
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Apr 28 23:59:58 2010 for FAUST compiler by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>