OpenASIP  2.0
Public Member Functions | List of all members
DictionaryToolCmdLineOptions Class Reference
Inheritance diagram for DictionaryToolCmdLineOptions:
Inheritance graph
Collaboration diagram for DictionaryToolCmdLineOptions:
Collaboration graph

Public Member Functions

 DictionaryToolCmdLineOptions ()
 
bool printPrimitive ()
 
bool printConnections ()
 
bool printGlobalRegister ()
 
bool printMissingConnections ()
 
bool printRFConnections ()
 
bool doNotPrintErrors ()
 
bool writeBinary ()
 
void printVersion () 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)
 
CmdLineOptionParserfindOption (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...
 

Detailed Description

DictionaryTool commandline options.

Definition at line 67 of file DictionaryTool.cc.

Constructor & Destructor Documentation

◆ DictionaryToolCmdLineOptions()

DictionaryToolCmdLineOptions::DictionaryToolCmdLineOptions ( )
inline

Definition at line 69 of file DictionaryTool.cc.

69  :
70  CmdLineOptions("Usage: dictionary_tool [options] adffile") {
71 
74  "primitive",
75  "Print missing operations from primitive operation set",
76  "p");
77 
79 
81  new BoolCmdLineOptionParser("connections",
82  "Print all connections in adf.",
83  "c");
84 
86 
89  "global_register",
90  "Print the name of global connection register", "g");
91 
93 
96  "missing",
97  "Print missing connections to connection register",
98  "m");
99 
101 
104  "reg_connections",
105  "Print all connections to the connection register.", "r");
106 
108 
111  "no_errors",
112  "Don't print any error messages.", "e");
113 
115 
118  "binary",
119  "Write binary program as output.", "w");
120 
122  }

Member Function Documentation

◆ doNotPrintErrors()

bool DictionaryToolCmdLineOptions::doNotPrintErrors ( )
inline

Definition at line 144 of file DictionaryTool.cc.

144  {
145  return findOption("no_errors")->isFlagOn();
146  }

◆ printConnections()

bool DictionaryToolCmdLineOptions::printConnections ( )
inline

Definition at line 128 of file DictionaryTool.cc.

128  {
129  return findOption("connections")->isFlagOn();
130  }

◆ printGlobalRegister()

bool DictionaryToolCmdLineOptions::printGlobalRegister ( )
inline

Definition at line 132 of file DictionaryTool.cc.

132  {
133  return findOption("global_register")->isFlagOn();
134  }

◆ printMissingConnections()

bool DictionaryToolCmdLineOptions::printMissingConnections ( )
inline

Definition at line 136 of file DictionaryTool.cc.

136  {
137  return findOption("missing")->isFlagOn();
138  }

◆ printPrimitive()

bool DictionaryToolCmdLineOptions::printPrimitive ( )
inline

Definition at line 124 of file DictionaryTool.cc.

124  {
125  return findOption("primitive")->isFlagOn();
126  }

◆ printRFConnections()

bool DictionaryToolCmdLineOptions::printRFConnections ( )
inline

Definition at line 140 of file DictionaryTool.cc.

140  {
141  return findOption("reg_connections")->isFlagOn();
142  }

◆ printVersion()

void DictionaryToolCmdLineOptions::printVersion ( ) const
inlinevirtual

Implements CmdLineOptions.

Definition at line 152 of file DictionaryTool.cc.

152  {
153  cout << "dictionary_tool - Dictionary Tool "
154  << Application::TCEVersionString() << endl;
155  }

References Application::TCEVersionString().

Here is the call graph for this function:

◆ writeBinary()

bool DictionaryToolCmdLineOptions::writeBinary ( )
inline

Definition at line 148 of file DictionaryTool.cc.

148  {
149  return findOption("binary")->isFlagOn();
150  }

The documentation for this class was generated from the following file:
DictionaryToolCmdLineOptions::doNotPrintErrors
bool doNotPrintErrors()
Definition: DictionaryTool.cc:144
CmdLineOptionParser::isFlagOn
virtual bool isFlagOn() const
Definition: CmdLineOptionParser.cc:126
DictionaryToolCmdLineOptions::printMissingConnections
bool printMissingConnections()
Definition: DictionaryTool.cc:136
CmdLineParser::addOption
void addOption(CmdLineOptionParser *opt)
DictionaryToolCmdLineOptions::printConnections
bool printConnections()
Definition: DictionaryTool.cc:128
CmdLineOptions::CmdLineOptions
CmdLineOptions(std::string description, std::string version="")
Definition: CmdLineOptions.cc:73
BoolCmdLineOptionParser
Definition: CmdLineOptionParser.hh:278
DictionaryToolCmdLineOptions::printPrimitive
bool printPrimitive()
Definition: DictionaryTool.cc:124
DictionaryToolCmdLineOptions::printRFConnections
bool printRFConnections()
Definition: DictionaryTool.cc:140
DictionaryToolCmdLineOptions::printGlobalRegister
bool printGlobalRegister()
Definition: DictionaryTool.cc:132
CmdLineParser::findOption
CmdLineOptionParser * findOption(std::string name) const
Definition: CmdLineParser.cc:160
Application::TCEVersionString
static std::string TCEVersionString()
Definition: Application.cc:510
DictionaryToolCmdLineOptions::writeBinary
bool writeBinary()
Definition: DictionaryTool.cc:148