<!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: drawschema.hh File Reference</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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>drawschema.hh File Reference</h1><code>#include "<a class="el" href="boxes_8hh_source.html">boxes.hh</a>"</code><br/> <div class="dynheader"> Include dependency graph for drawschema.hh:</div> <div class="dynsection"> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> </div> <p><a href="drawschema_8hh_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="drawschema_8hh.html#a3be4e4d89005ef7378ba7e4c609efea2">drawSchema</a> (<a class="el" href="classCTree.html">Tree</a> bd, const char *projname, const char *dev)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The entry point to generate from a block diagram as a set of svg files stored in the directory "<projname>-svg/" or "<projname>-ps/" depending of <dev>. <a href="#a3be4e4d89005ef7378ba7e4c609efea2"></a><br/></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a3be4e4d89005ef7378ba7e4c609efea2"></a><!-- doxytag: member="drawschema.hh::drawSchema" ref="a3be4e4d89005ef7378ba7e4c609efea2" args="(Tree bd, const char *projname, const char *dev)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void drawSchema </td> <td>(</td> <td class="paramtype"><a class="el" href="classCTree.html">Tree</a> </td> <td class="paramname"> <em>bd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>projname</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>dev</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>The entry point to generate from a block diagram as a set of svg files stored in the directory "<projname>-svg/" or "<projname>-ps/" depending of <dev>. </p> <p>Definition at line <a class="el" href="drawschema_8cpp_source.html#l00158">158</a> of file <a class="el" href="drawschema_8cpp_source.html">drawschema.cpp</a>.</p> <p>References <a class="el" href="boxcomplexity_8cpp_source.html#l00056">boxComplexity()</a>, <a class="el" href="drawschema_8cpp_source.html#l00273">cholddir()</a>, <a class="el" href="drawschema_8cpp_source.html#l00130">gDevSuffix</a>, <a class="el" href="main_8cpp_source.html#l00119">gFoldThreshold</a>, <a class="el" href="drawschema_8cpp_source.html#l00253">mkchdir()</a>, <a class="el" href="drawschema_8cpp_source.html#l00199">pendingDrawing()</a>, <a class="el" href="drawschema_8cpp_source.html#l00187">scheduleDrawing()</a>, <a class="el" href="drawschema_8cpp_source.html#l00127">sFoldingFlag</a>, and <a class="el" href="drawschema_8cpp_source.html#l00216">writeSchemaFile()</a>.</p> <p>Referenced by <a class="el" href="main_8cpp_source.html#l00475">main()</a>, and <a class="el" href="doc_8cpp_source.html#l00829">printDocDgm()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00159"></a>00159 { <a name="l00160"></a>00160 <a class="code" href="drawschema_8cpp.html#acf24453e8b242d6f3843cf4d85a0634a">gDevSuffix</a> = dev; <a name="l00161"></a>00161 <a class="code" href="drawschema_8cpp.html#adc1837f7fea0faaf627265422a09f424">sFoldingFlag</a> = <a class="code" href="boxcomplexity_8cpp.html#af02bacfa671f9f6d8bea6f5f9c22e0af" title="Return the complexity propety of a box expression tree.">boxComplexity</a>(bd) > <a class="code" href="drawschema_8cpp.html#aa93530f1aaab4d34e88d4eb1e719a435">gFoldThreshold</a>; <a name="l00162"></a>00162 <a name="l00163"></a>00163 <a class="code" href="drawschema_8cpp.html#a4ba32ce8ec678ffbdf068a4483543239" title="Create a new directory in the current one to store the diagrams.">mkchdir</a>(projname); <span class="comment">// create a directory to store files</span> <a name="l00164"></a>00164 <a name="l00165"></a>00165 <a class="code" href="drawschema_8cpp.html#afe7d8ad1ff5133e12e4155750442a2b0" title="Schedule a makeBlockSchema diagram to be drawn.">scheduleDrawing</a>(bd); <span class="comment">// schedule the initial drawing</span> <a name="l00166"></a>00166 <a name="l00167"></a>00167 <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; <span class="keywordflow">while</span> (<a class="code" href="drawschema_8cpp.html#ac6c91fb6032807174f609025a4091a90" title="Retrieve next block diagram that must be drawn.">pendingDrawing</a>(t)) { <a name="l00168"></a>00168 <a class="code" href="drawschema_8cpp.html#a80162904e235e44a5ca75e9141949cf3" title="Write a top level diagram.">writeSchemaFile</a>(t); <span class="comment">// generate all the pending drawing</span> <a name="l00169"></a>00169 } <a name="l00170"></a>00170 <a name="l00171"></a>00171 <a class="code" href="drawschema_8cpp.html#aa993eaaab62326b7ec82db3ac19d420c" title="Switch back to the previously stored current directory.">cholddir</a>(); <span class="comment">// return to current directory</span> <a name="l00172"></a>00172 } </pre></div></p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> <p><div class="dynheader"> Here is the caller graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:04 2010 for FAUST compiler by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>