FAUST compiler  0.9.9.6b8
Functions
drawschema.hh File Reference
#include "boxes.hh"
Include dependency graph for drawschema.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void drawSchema (Tree bd, const char *projname, const char *dev)
 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>. More...
 

Function Documentation

void drawSchema ( Tree  bd,
const char *  projname,
const char *  dev 
)

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>.

Definition at line 161 of file drawschema.cpp.

References boxComplexity(), cholddir(), gDevSuffix, gFoldThreshold, mkchdir(), pendingDrawing(), scheduleDrawing(), sFoldingFlag, and writeSchemaFile().

Referenced by main(), and printDocDgm().

162 {
163  gDevSuffix = dev;
165 
166  mkchdir(projname); // create a directory to store files
167 
168  scheduleDrawing(bd); // schedule the initial drawing
169 
170  Tree t; while (pendingDrawing(t)) {
171  writeSchemaFile(t); // generate all the pending drawing
172  }
173 
174  cholddir(); // return to current directory
175 }
static bool pendingDrawing(Tree &t)
Retrieve next block diagram that must be drawn.
Definition: drawschema.cpp:202
static int cholddir()
Switch back to the previously stored current directory.
Definition: doc_lang.cpp:242
int mkchdir(string dirname)
Create a new directory in the current one to store the diagrams.
Definition: files.cpp:55
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Definition: tree.hh:109
int gFoldThreshold
Definition: main.cpp:126
static bool sFoldingFlag
Definition: drawschema.cpp:130
int boxComplexity(Tree box)
Return the complexity propety of a box expression tree.
static void scheduleDrawing(Tree t)
Schedule a makeBlockSchema diagram to be drawn.
Definition: drawschema.cpp:190
static const char * gDevSuffix
Definition: drawschema.cpp:133
static void writeSchemaFile(Tree bd)
Write a top level diagram.
Definition: drawschema.cpp:219

Here is the call graph for this function:

Here is the caller graph for this function: