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

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

Here is the call graph for this function:

Here is the caller graph for this function: