OpenASIP
2.0
|
#include <TestHDBCmdLineOptions.hh>
Public Member Functions | |
TestHDBCmdLineOptions () | |
~TestHDBCmdLineOptions () | |
bool | isFUEntryIDGiven () const |
bool | isRFEntryIDGiven () const |
bool | verbose () const |
bool | leaveDirty () const |
int | fuEntryID () const |
int | rfEntryID () const |
std::string | hdbFile () const |
std::string | vhdlSim () const |
virtual void | printVersion () const |
virtual void | printHelp () const |
![]() | |
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 |
![]() | |
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 | FU_ID_PARAM_NAME = "fuid" |
Long name of the FUentryID parameter. More... | |
static const std::string | RF_ID_PARAM_NAME = "rfid" |
Long name of the RFentryID parameter. More... | |
static const std::string | VERBOSE_PARAM_NAME = "verbose" |
Long name of verbose output parameter. More... | |
static const std::string | DIRTY_PARAM_NAME = "leave-dirty" |
Long name of leave dirty parameter. More... | |
static const std::string | SIM_PARAM_NAME = "simulator" |
Long name of VHDL simulator parameter. More... | |
Additional Inherited Members | |
![]() | |
bool | optionGiven (std::string key) const |
![]() | |
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 |
![]() | |
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 TestHDBCmdLineOptions.hh.
TestHDBCmdLineOptions::TestHDBCmdLineOptions | ( | ) |
The constructor.
Definition at line 48 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::addOption(), DIRTY_PARAM_NAME, FU_ID_PARAM_NAME, fuEntryID(), RF_ID_PARAM_NAME, rfEntryID(), SIM_PARAM_NAME, verbose(), and VERBOSE_PARAM_NAME.
TestHDBCmdLineOptions::~TestHDBCmdLineOptions | ( | ) |
int TestHDBCmdLineOptions::fuEntryID | ( | ) | const |
Returns FU entryID
Definition at line 126 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), FU_ID_PARAM_NAME, and CmdLineOptionParser::integer().
Referenced by TestHDBCmdLineOptions().
std::string TestHDBCmdLineOptions::hdbFile | ( | ) | const |
Returns HDB file name
Definition at line 147 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::argument(), and CmdLineParser::numberOfArguments().
bool TestHDBCmdLineOptions::isFUEntryIDGiven | ( | ) | const |
Returns information whether this option was given
Definition at line 86 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), FU_ID_PARAM_NAME, and CmdLineOptionParser::isDefined().
bool TestHDBCmdLineOptions::isRFEntryIDGiven | ( | ) | const |
Returns information whether this option was given
Definition at line 96 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isDefined(), and RF_ID_PARAM_NAME.
bool TestHDBCmdLineOptions::leaveDirty | ( | ) | const |
Returns information whether this option was given
Definition at line 116 of file TestHDBCmdLineOptions.cc.
References DIRTY_PARAM_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().
|
virtual |
Prints help of the application.
Reimplemented from CmdLineOptions.
Definition at line 172 of file TestHDBCmdLineOptions.cc.
References CmdLineOptions::printHelp(), and printVersion().
|
virtual |
Prints the version of the application.
Implements CmdLineOptions.
Definition at line 164 of file TestHDBCmdLineOptions.cc.
References Application::TCEVersionString().
Referenced by printHelp().
int TestHDBCmdLineOptions::rfEntryID | ( | ) | const |
Returns RF entryID
Definition at line 136 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::integer(), and RF_ID_PARAM_NAME.
Referenced by TestHDBCmdLineOptions().
bool TestHDBCmdLineOptions::verbose | ( | ) | const |
Returns information whether this option was given
Definition at line 106 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and VERBOSE_PARAM_NAME.
Referenced by TestHDBCmdLineOptions().
std::string TestHDBCmdLineOptions::vhdlSim | ( | ) | const |
Returns HDL simulator to be used
Definition at line 156 of file TestHDBCmdLineOptions.cc.
References CmdLineParser::findOption(), SIM_PARAM_NAME, and CmdLineOptionParser::String().
|
staticprivate |
Long name of leave dirty parameter.
Definition at line 71 of file TestHDBCmdLineOptions.hh.
Referenced by leaveDirty(), and TestHDBCmdLineOptions().
|
staticprivate |
Long name of the FUentryID parameter.
Definition at line 65 of file TestHDBCmdLineOptions.hh.
Referenced by fuEntryID(), isFUEntryIDGiven(), and TestHDBCmdLineOptions().
|
staticprivate |
Long name of the RFentryID parameter.
Definition at line 67 of file TestHDBCmdLineOptions.hh.
Referenced by isRFEntryIDGiven(), rfEntryID(), and TestHDBCmdLineOptions().
|
staticprivate |
Long name of VHDL simulator parameter.
Definition at line 73 of file TestHDBCmdLineOptions.hh.
Referenced by TestHDBCmdLineOptions(), and vhdlSim().
|
staticprivate |
Long name of verbose output parameter.
Definition at line 69 of file TestHDBCmdLineOptions.hh.
Referenced by TestHDBCmdLineOptions(), and verbose().