Settings Class Reference
#include <settings.h>
Public Member Functions | |
Settings (CString module, CString type) | |
~Settings () | |
void | init (int argc, char **argv) |
void | init (CStrings args) |
void | initOutputStream () |
Public Attributes | |
CString | module |
CString | type |
bool | helpFlag |
CString | settingsFile |
CString | outputFile |
ofstream | outputStream |
bool | stepFlag |
bool | outputAsHTML |
SDFflowType | flowType |
CString | tileMappingAlgo |
CString | nocMappingAlgo |
list< CNode * > | xmlAppGraphs |
CNode * | xmlArchGraph |
CNode * | xmlSystemUsage |
double | cnst_a |
double | cnst_b |
double | cnst_c |
double | cnst_d |
double | cnst_e |
double | cnst_f |
double | cnst_g |
double | cnst_k |
double | cnst_l |
double | cnst_m |
double | cnst_n |
double | cnst_o |
double | cnst_p |
double | cnst_q |
uint | maxDetour |
uint | maxNrRipups |
uint | maxNrTries |
Private Member Functions | |
void | parseArguments (CStrings args) |
void | parseSettingsFile () |
CNode * | loadApplicationGraphFromFile (CString &file) |
CNode * | loadArchitectureGraphFromFile (CString &file) |
CNode * | loadSystemUsageFromFile (CString &file) |
Detailed Description
Settings Object containing all settings for the tool.
Constructor & Destructor Documentation
Settings () Constructor. Create settings object with default values.
References cnst_a, cnst_b, cnst_c, cnst_d, cnst_e, cnst_f, cnst_g, cnst_k, cnst_l, cnst_m, cnst_n, cnst_o, cnst_p, cnst_q, flowType, helpFlag, maxDetour, maxNrRipups, maxNrTries, nocMappingAlgo, outputAsHTML, outputFile, settingsFile, stepFlag, tileMappingAlgo, xmlArchGraph, and xmlSystemUsage.
Settings::~Settings | ( | ) |
~Settings () Destructor.
Member Function Documentation
void Settings::init | ( | int | argc, | |
char ** | argv | |||
) |
init () Initialize the settings using the supplied arguments. Note that the first argument (argv[0]) is skipped.
Referenced by initSettings().
void Settings::init | ( | CStrings | args | ) |
init () Initialize the settings using the supplied arguments. The function loads also external files (e.g. settings, graph, etc) when required.
References helpFlag, parseArguments(), and parseSettingsFile().
void Settings::initOutputStream | ( | ) |
initOutputStream () Initialize the output stream.
References outputFile, and outputStream.
Referenced by initSettings().
loadApplicationGraphFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the SDFG.
References CGetAttribute(), CGetChildNode(), CGetRootNode(), CParseFile(), and module.
Referenced by parseSettingsFile().
loadArchitectureGraphFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the platform.
References CGetAttribute(), CGetChildNode(), CGetRootNode(), CParseFile(), and module.
Referenced by parseSettingsFile().
loadSystemUsageFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the used resources by other applications.
References CGetAttribute(), CGetChildNode(), CGetRootNode(), CParseFile(), and module.
Referenced by parseSettingsFile().
void Settings::parseArguments | ( | CStrings | args | ) | [private] |
parseArguments () Parse the supplied arguments.
References helpFlag, outputAsHTML, outputFile, settingsFile, and stepFlag.
Referenced by init().
void Settings::parseSettingsFile | ( | ) | [private] |
parseSettingsFile () Load all settings from the settings file.
References CGetAttribute(), CGetChildNode(), CGetRootNode(), CHasAttribute(), CNextNode(), cnst_a, cnst_b, cnst_c, cnst_d, cnst_e, cnst_f, cnst_g, cnst_k, cnst_l, cnst_m, cnst_n, cnst_o, cnst_p, cnst_q, CParseFile(), flowType, loadApplicationGraphFromFile(), loadArchitectureGraphFromFile(), loadSystemUsageFromFile(), maxDetour, maxNrRipups, maxNrTries, module, nocMappingAlgo, settingsFile, tileMappingAlgo, type, xmlAppGraphs, xmlArchGraph, and xmlSystemUsage.
Referenced by init().
Member Data Documentation
double Settings::cnst_a |
double Settings::cnst_b |
double Settings::cnst_c |
double Settings::cnst_d |
double Settings::cnst_e |
double Settings::cnst_f |
double Settings::cnst_g |
double Settings::cnst_k |
double Settings::cnst_l |
double Settings::cnst_m |
double Settings::cnst_n |
double Settings::cnst_o |
double Settings::cnst_p |
double Settings::cnst_q |
Referenced by mapApplicationGraphToArchitectureGraph(), parseSettingsFile(), and Settings().
bool Settings::helpFlag |
Referenced by init(), initSettings(), parseArguments(), and Settings().
Referenced by mapApplicationGraphsToArchitectureGraph(), parseArguments(), and Settings().
ofstream Settings::outputStream |
Referenced by initOutputStream(), and main().
Referenced by parseArguments(), parseCommandLine(), parseSettingsFile(), parseSettingsFile(), printPreamble(), setDefaults(), and Settings().
bool Settings::stepFlag |
Referenced by mapApplicationGraphToArchitectureGraph(), parseArguments(), and Settings().
Referenced by generateMessages(), main(), parseCommandLine(), parseSettingsFile(), parseSettingsFile(), printArchitectureGraph(), printPreamble(), and setDefaults().
list<CNode*> Settings::xmlAppGraphs |
The documentation for this class was generated from the following files: