OpenASIP
2.0
|
#include <TTAUnitTesterCmdLineOptions.hh>
Public Member Functions | |
TTAUnitTesterCmdLineOptions () | |
~TTAUnitTesterCmdLineOptions () | |
bool | verbose () const |
bool | leaveDirty () const |
std::string | vhdlSim () const |
std::string | adfFileName () const |
std::string | idfFileName () const |
void | printVersion () const |
void | printHelp () const |
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 |
Static Private Attributes | |
static const std::string | VERBOSE_PARAM_NAME = "verbose" |
Long name of verbose output parameter. More... | |
static const std::string | DIRTY_PARAM_NAME |
Long name of leave dirty parameter. More... | |
static const std::string | SIM_PARAM_NAME = "simulator" |
Long name of VHDL simulator parameter. More... | |
static const std::string | ADF_PARAM_NAME = "adf" |
Long name of ADF file parameter. 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... | |
Definition at line 39 of file TTAUnitTesterCmdLineOptions.hh.
TTAUnitTesterCmdLineOptions::TTAUnitTesterCmdLineOptions | ( | ) |
Definition at line 44 of file TTAUnitTesterCmdLineOptions.cc.
References CmdLineParser::addOption(), ADF_PARAM_NAME, DIRTY_PARAM_NAME, SIM_PARAM_NAME, verbose(), and VERBOSE_PARAM_NAME.
TTAUnitTesterCmdLineOptions::~TTAUnitTesterCmdLineOptions | ( | ) |
Definition at line 69 of file TTAUnitTesterCmdLineOptions.cc.
std::string TTAUnitTesterCmdLineOptions::adfFileName | ( | ) | const |
Definition at line 95 of file TTAUnitTesterCmdLineOptions.cc.
References ADF_PARAM_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::String().
std::string TTAUnitTesterCmdLineOptions::idfFileName | ( | ) | const |
Definition at line 102 of file TTAUnitTesterCmdLineOptions.cc.
References CmdLineParser::argument(), and CmdLineParser::numberOfArguments().
bool TTAUnitTesterCmdLineOptions::leaveDirty | ( | ) | const |
Definition at line 81 of file TTAUnitTesterCmdLineOptions.cc.
References DIRTY_PARAM_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().
|
virtual |
Prints the help menu of the program.
Reimplemented from CmdLineOptions.
Definition at line 114 of file TTAUnitTesterCmdLineOptions.cc.
References CmdLineOptions::printHelp(), and printVersion().
|
virtual |
Implements CmdLineOptions.
Definition at line 107 of file TTAUnitTesterCmdLineOptions.cc.
References Application::TCEVersionString().
Referenced by printHelp().
bool TTAUnitTesterCmdLineOptions::verbose | ( | ) | const |
Definition at line 74 of file TTAUnitTesterCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and VERBOSE_PARAM_NAME.
Referenced by TTAUnitTesterCmdLineOptions().
std::string TTAUnitTesterCmdLineOptions::vhdlSim | ( | ) | const |
Definition at line 88 of file TTAUnitTesterCmdLineOptions.cc.
References CmdLineParser::findOption(), SIM_PARAM_NAME, and CmdLineOptionParser::String().
|
staticprivate |
Long name of ADF file parameter.
Definition at line 66 of file TTAUnitTesterCmdLineOptions.hh.
Referenced by adfFileName(), and TTAUnitTesterCmdLineOptions().
|
staticprivate |
Long name of leave dirty parameter.
Definition at line 62 of file TTAUnitTesterCmdLineOptions.hh.
Referenced by leaveDirty(), and TTAUnitTesterCmdLineOptions().
|
staticprivate |
Long name of VHDL simulator parameter.
Definition at line 64 of file TTAUnitTesterCmdLineOptions.hh.
Referenced by TTAUnitTesterCmdLineOptions(), and vhdlSim().
|
staticprivate |
Long name of verbose output parameter.
Definition at line 60 of file TTAUnitTesterCmdLineOptions.hh.
Referenced by TTAUnitTesterCmdLineOptions(), and verbose().