FSMSADF::ToolTransform Class Reference
#include <sdf3transform.h>
Public Member Functions | |
virtual bool | parseCommand (int argc, char **argv, int *arg) |
virtual void | initSettings (const CString &modulename, int argc, char **argv) |
virtual bool | checkRequiredSettings (void) |
virtual void | helpMessage (std::ostream &out) |
virtual void | cleanUp () |
void | transformGraph (ostream &out) |
void | loadApplicationGraph () |
TransformSettings * | settings () |
Private Member Functions | |
void | loadApplicationGraphFromFile (CString &file, CString module, CNode **appGraphNode, CDoc **appGraphDoc) |
Graph * | transformGraph (Graph *g, CPairs &transforms, ostream &out) |
Private Attributes | |
CNode * | xmlAppGraph |
CDoc * | xmlAppGraphDoc |
Member Function Documentation
bool ToolTransform::checkRequiredSettings | ( | void | ) | [virtual] |
Implements FSMSADF::Tool.
References FSMSADF::TransformSettings::arguments, and settings().
void ToolTransform::cleanUp | ( | ) | [virtual] |
Reimplemented from FSMSADF::Tool.
References releaseDoc(), xmlAppGraphDoc, and xmlCleanup().
Referenced by main().
virtual void FSMSADF::ToolTransform::helpMessage | ( | std::ostream & | out | ) | [virtual] |
void ToolTransform::initSettings | ( | const CString & | modulename, | |
int | argc, | |||
char ** | argv | |||
) | [virtual] |
initSettings () The function initializes the program settings.
Reimplemented from FSMSADF::Tool.
References FSMSADF::Tool::_settings.
Referenced by main().
void ToolTransform::loadApplicationGraph | ( | ) |
References loadApplicationGraphFromFile(), MODULE, settings(), xmlAppGraph, and xmlAppGraphDoc.
Referenced by main().
void ToolTransform::loadApplicationGraphFromFile | ( | CString & | file, | |
CString | module, | |||
CNode ** | appGraphNode, | |||
CDoc ** | appGraphDoc | |||
) | [private] |
loadApplicationGraphFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the SDFG.
References CGetAttribute(), CGetChildNode(), CGetRootNode(), and CParseFile().
Referenced by loadApplicationGraph().
bool ToolTransform::parseCommand | ( | int | argc, | |
char ** | argv, | |||
int * | arg | |||
) | [virtual] |
Implements FSMSADF::Tool.
References FSMSADF::TransformSettings::arguments, FSMSADF::TransformSettings::graphFile, FSMSADF::Settings::outputFile, FSMSADF::Tool::parseSwitchArgument(), FSMSADF::TransformSettings::scenario, and settings().
TransformSettings* FSMSADF::ToolTransform::settings | ( | ) | [inline] |
References FSMSADF::Tool::_settings.
Referenced by checkRequiredSettings(), loadApplicationGraph(), main(), parseCommand(), and transformGraph().
void ToolTransform::transformGraph | ( | ostream & | out | ) |
transformGraph () The function transforms the graph.
References CAddAttribute(), CAddNode(), CNewDoc(), CNewNode(), FSMSADF::Graph::constructFromXML(), FSMSADF::Graph::convertToXML(), CSaveFile(), g, settings(), and xmlAppGraph.
Referenced by main().
transformGraph () The function transforms the SDF graph and the resulting (H)SDF graph is outputted in XML format to the out stream.
References FSMSADF::Graph::clone(), FSMSADF::Graph::extractSDFgraph(), FSMSADF::GraphComponent::getId(), FSMSADF::GraphComponent::getName(), FSMSADF::GraphComponent::getParent(), FSMSADF::Graph::getScenario(), FSMSADF::_CPair::key, FSMSADF::modelAutoConcurrencyInGraph(), outputSDFasXML(), FSMSADF::transformToWorstCaseGraph(), and FSMSADF::_CPair::value.
Member Data Documentation
CNode* FSMSADF::ToolTransform::xmlAppGraph [private] |
Referenced by loadApplicationGraph(), and transformGraph().
CDoc* FSMSADF::ToolTransform::xmlAppGraphDoc [private] |
Referenced by cleanUp(), and loadApplicationGraph().
The documentation for this class was generated from the following files: