#include "sdf3flow.h"
#include "settings.h"
#include "../../sdf.h"
Functions | |
void | helpMessage (ostream &out) |
bool | initSettings (int argc, char **argv) |
CNode * | mapApplicationGraphToArchitectureGraph (CNode *xmlAppGraph, CNode *xmlArchGraph, CNode *xmlSystemUsage, ostream &out, bool outputAsHTML) |
bool | mapApplicationGraphsToArchitectureGraph (ostream &out) |
int | main (int argc, char **argv) |
Variables | |
Settings | settings (MODULE, SETTINGS_TYPE) |
Function Documentation
void helpMessage | ( | ostream & | out | ) |
helpMessage () Function prints help message for the tool.
References DOTTED_VERSION, and TOOL.
bool initSettings | ( | int | argc, | |
char ** | argv | |||
) |
initSettings () The function initializes the program settings.
References Settings::helpFlag, helpMessage(), Settings::init(), Settings::initOutputStream(), and settings.
int main | ( | int | argc, | |
char ** | argv | |||
) |
main () It does none of the hard work, but it is very needed...
References initSettings(), mapApplicationGraphsToArchitectureGraph(), Settings::outputStream, and settings.
bool mapApplicationGraphsToArchitectureGraph | ( | ostream & | out | ) |
mapApplicationGraphsToArchitectureGraph () Map all application graphs in the order specified by the settings to the architecture graph.
References CGetAttribute(), mapApplicationGraphToArchitectureGraph(), Settings::outputAsHTML, Settings::outputFile, settings, Settings::xmlAppGraphs, Settings::xmlArchGraph, and Settings::xmlSystemUsage.
Referenced by main().
CNode* mapApplicationGraphToArchitectureGraph | ( | CNode * | xmlAppGraph, | |
CNode * | xmlArchGraph, | |||
CNode * | xmlSystemUsage, | |||
ostream & | out, | |||
bool | outputAsHTML | |||
) |
mapApplicationGraphToArchitectureGraph () The complete mapping flow. The function returns the system usage after the mapping is completed. On failure, it returns NULL.
References CGetChildNode(), Settings::cnst_a, Settings::cnst_b, Settings::cnst_c, Settings::cnst_d, Settings::cnst_e, Settings::cnst_f, Settings::cnst_g, Settings::cnst_k, Settings::cnst_l, Settings::cnst_m, Settings::cnst_n, Settings::cnst_o, Settings::cnst_p, Settings::cnst_q, SDF3Flow::createSDF3Node(), SDF3Flow::FlowCompleted, Settings::flowType, SDF3Flow::getFlowType(), logError(), Settings::maxDetour, Settings::maxNrRipups, Settings::maxNrTries, Settings::nocMappingAlgo, SDF3Flow::outputMappingAsHTML(), SDF3Flow::outputMappingAsXML(), printTimer(), SDF3Flow::run(), SDF3Flow::setNoCMappingAlgo(), SDF3Flow::setStepMode(), SDF3Flow::setTileMappingAlgo(), settings, startTimer(), Settings::stepFlag, stopTimer(), and Settings::tileMappingAlgo.
Referenced by mapApplicationGraphsToArchitectureGraph().