OpenASIP
2.0
|
#include <BuildOpset.hh>
Public Member Functions | |
BuildOpsetOptions () | |
virtual | ~BuildOpsetOptions () |
virtual void | printVersion () const |
std::string | install () const |
std::string | sourceDir () const |
bool | ignore () 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 void | printHelp () const |
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 |
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... | |
Class that handles options passed to build_opset.
Definition at line 42 of file BuildOpset.hh.
BuildOpsetOptions::BuildOpsetOptions | ( | ) |
Constructor.
Definition at line 62 of file BuildOpset.cc.
References CmdLineParser::addOption(), ignore(), and sourceDir().
|
virtual |
bool BuildOpsetOptions::ignore | ( | ) | const |
Returns the value of the ignore option.
Definition at line 114 of file BuildOpset.cc.
References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().
Referenced by BuildOpsetOptions().
std::string BuildOpsetOptions::install | ( | ) | const |
|
virtual |
Prints the version of the application.
Implements CmdLineOptions.
Definition at line 93 of file BuildOpset.cc.
References Application::TCEVersionString().
string BuildOpsetOptions::sourceDir | ( | ) | const |
Returns the value of the source-dir option.
Definition at line 104 of file BuildOpset.cc.
References CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by BuildOpsetOptions().