OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
std::map< std::string, CmdLineOptionParser * > optionShortNames_
 Database for holding options with their short names as a key.
 
std::vector< std::string > commandLine_
 Command line is stored here.
 
std::vector< std::string > arguments_
 Command line arguments are stored here.
 
std::vector< std::string > prefixes_
 Legal prefixes are stored here.
 

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 }
void addOption(CmdLineOptionParser *opt)

References CmdLineParser::addOption(), doNotPrintErrors(), printConnections(), printGlobalRegister(), printMissingConnections(), printPrimitive(), printRFConnections(), and writeBinary().

Here is the call graph for this function:

Member Function Documentation

◆ doNotPrintErrors()

bool DictionaryToolCmdLineOptions::doNotPrintErrors ( )
inline

Definition at line 144 of file DictionaryTool.cc.

144 {
145 return findOption("no_errors")->isFlagOn();
146 }
virtual bool isFlagOn() const
CmdLineOptionParser * findOption(std::string name) const

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printConnections()

bool DictionaryToolCmdLineOptions::printConnections ( )
inline

Definition at line 128 of file DictionaryTool.cc.

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

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printGlobalRegister()

bool DictionaryToolCmdLineOptions::printGlobalRegister ( )
inline

Definition at line 132 of file DictionaryTool.cc.

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

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printMissingConnections()

bool DictionaryToolCmdLineOptions::printMissingConnections ( )
inline

Definition at line 136 of file DictionaryTool.cc.

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

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printPrimitive()

bool DictionaryToolCmdLineOptions::printPrimitive ( )
inline

Definition at line 124 of file DictionaryTool.cc.

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

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printRFConnections()

bool DictionaryToolCmdLineOptions::printRFConnections ( )
inline

Definition at line 140 of file DictionaryTool.cc.

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

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

◆ printVersion()

void DictionaryToolCmdLineOptions::printVersion ( ) const
inlinevirtual

Implements CmdLineOptions.

Definition at line 152 of file DictionaryTool.cc.

152 {
153 cout << "dictionary_tool - Dictionary Tool "
155 }
static std::string TCEVersionString()

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 }

References CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().

Referenced by DictionaryToolCmdLineOptions().

Here is the call graph for this function:

The documentation for this class was generated from the following file: