|
FAUST compiler
0.9.9.6b8
|
#include "boxes.hh"

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>. | |
| 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 162 of file drawschema.cpp.
References boxComplexity(), cholddir(), gDevSuffix, gFoldThreshold, mkchdir(), pendingDrawing(), scheduleDrawing(), sFoldingFlag, and writeSchemaFile().
Referenced by main(), and printDocDgm().
{
gDevSuffix = dev;
sFoldingFlag = boxComplexity(bd) > gFoldThreshold;
mkchdir(projname); // create a directory to store files
scheduleDrawing(bd); // schedule the initial drawing
Tree t; while (pendingDrawing(t)) {
writeSchemaFile(t); // generate all the pending drawing
}
cholddir(); // return to current directory
}


1.8.0