OpenASIP
2.0
|
#include <EstimatorCmdLineOptions.hh>
Public Member Functions | |
EstimatorCmdLineOptions () | |
virtual | ~EstimatorCmdLineOptions () |
virtual void | printVersion () const |
virtual void | printHelp () const |
bool | runOnlyEstimations () const |
bool | totalArea () const |
bool | longestPath () const |
bool | totalEnergy () const |
std::string | TPEF () |
std::string | traceDB () |
Public Member Functions inherited from CmdLineOptions | |
CmdLineOptions (std::string description, std::string version="") | |
virtual | ~CmdLineOptions () |
void | parse (char *argv[], int argc) |
void | parse (std::string argv[], int argc) |
void | parse (std::vector< std::string > argv) |
virtual bool | isVerboseSwitchDefined () const |
virtual bool | isVerboseSpamSwitchDefined () const |
Public Member Functions inherited from CmdLineParser | |
CmdLineParser (std::string description) | |
virtual | ~CmdLineParser () |
virtual void | storeOptions (Options &options) |
virtual int | numberOfArguments () const |
virtual std::string | argument (int index) const |
Private Member Functions | |
EstimatorCmdLineOptions (const EstimatorCmdLineOptions &) | |
Copying not allowed. More... | |
EstimatorCmdLineOptions & | operator= (const EstimatorCmdLineOptions &) |
Assignment not allowed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CmdLineOptions | |
bool | optionGiven (std::string key) const |
Protected Member Functions inherited from CmdLineParser | |
void | addOption (CmdLineOptionParser *opt) |
CmdLineOptionParser * | findOption (std::string name) const |
bool | parseOption (std::string option, std::string &name, std::string &arguments, std::string &prefix, bool &hasArgument) const |
bool | readPrefix (std::string &option, std::string &prefix, bool &longOption) const |
bool | isPrefix (std::string name) const |
Protected Attributes inherited from CmdLineParser | |
std::map< std::string, CmdLineOptionParser * > | optionLongNames_ |
Database for holding options with their long names as a key. More... | |
std::map< std::string, CmdLineOptionParser * > | optionShortNames_ |
Database for holding options with their short names as a key. More... | |
std::vector< std::string > | commandLine_ |
Command line is stored here. More... | |
std::vector< std::string > | arguments_ |
Command line arguments are stored here. More... | |
std::vector< std::string > | prefixes_ |
Legal prefixes are stored here. More... | |
Command line option class for Simulator.
Definition at line 43 of file EstimatorCmdLineOptions.hh.
EstimatorCmdLineOptions::EstimatorCmdLineOptions | ( | ) |
Constructor.
Definition at line 65 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::addOption(), SWL_LONGESTPATH, SWL_TOTALAREA, SWL_TOTALENERGY, SWL_TPEF, SWL_TRACE, SWS_LONGESTPATH, SWS_TOTALAREA, SWS_TOTALENERGY, SWS_TPEF, and SWS_TRACE.
|
virtual |
|
private |
Copying not allowed.
bool EstimatorCmdLineOptions::longestPath | ( | ) | const |
Checks if run longest path estimation option was given.
Definition at line 187 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and SWL_LONGESTPATH.
|
private |
Assignment not allowed.
|
virtual |
Prints the help menu of the program.
Reimplemented from CmdLineOptions.
Definition at line 115 of file EstimatorCmdLineOptions.cc.
References CmdLineOptions::printHelp(), and printVersion().
|
virtual |
Prints the version of the program.
Implements CmdLineOptions.
Definition at line 106 of file EstimatorCmdLineOptions.cc.
References Application::TCEVersionString().
Referenced by printHelp().
bool EstimatorCmdLineOptions::runOnlyEstimations | ( | ) | const |
Test if estimation selection flags are given, returns true is so.
Definition at line 158 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), SWL_LONGESTPATH, and SWL_TOTALAREA.
bool EstimatorCmdLineOptions::totalArea | ( | ) | const |
Checks if run total area estimation option was given.
Definition at line 174 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and SWL_TOTALAREA.
bool EstimatorCmdLineOptions::totalEnergy | ( | ) | const |
Checks if run total energy consumption estimation option was given.
Definition at line 200 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and SWL_TOTALENERGY.
std::string EstimatorCmdLineOptions::TPEF | ( | ) |
Returns the TPEF file name given by the user.
If no value is given in the parsed command line, returns an empty string.
Definition at line 136 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::String(), and SWL_TPEF.
std::string EstimatorCmdLineOptions::traceDB | ( | ) |
Returns the TraceDB file name given by the user.
If no value is given in the parsed command line, returns an empty string.
Definition at line 148 of file EstimatorCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::String(), and SWL_TRACE.