|
OpenASIP 2.2
|
#include <CmdLineOptionParser.hh>


Public Member Functions | |
| StringCmdLineOptionParser (std::string name, std::string desc, std::string alias="") | |
| virtual | ~StringCmdLineOptionParser () |
| virtual OptionValue * | copy () const |
| virtual bool | parseValue (std::string arguments, std::string prefix) |
| virtual std::string | String (int index=0) const |
Public Member Functions inherited from CmdLineOptionParser | |
| CmdLineOptionParser (std::string name, std::string desc, std::string alias, bool hidden=false) | |
| virtual | ~CmdLineOptionParser () |
| std::string | longName () const |
| std::string | shortName () const |
| std::string | description () const |
| bool | isHidden () |
| bool | isDefined () |
| virtual int | integer (int index=0) const |
| virtual unsigned | unsignedInteger (int index=0) const |
| virtual double | real () const |
| virtual bool | isFlagOn () const |
| virtual bool | isFlagOff () const |
| virtual int | listSize () const |
Private Member Functions | |
| StringCmdLineOptionParser (const StringCmdLineOptionParser &) | |
| Copying not allowed. | |
| StringCmdLineOptionParser & | operator= (const StringCmdLineOptionParser &) |
| Assignment not allowed. | |
Private Attributes | |
| std::string | value_ |
| The value of the option. | |
Additional Inherited Members | |
Protected Member Functions inherited from CmdLineOptionParser | |
| void | setDefined () |
CmdLineOptionParser that has a string as a value.
Definition at line 180 of file CmdLineOptionParser.hh.
| StringCmdLineOptionParser::StringCmdLineOptionParser | ( | std::string | name, |
| std::string | desc, | ||
| std::string | alias = "" |
||
| ) |
Constructor.
| name | The name of the option. |
| desc | The description of the option. |
| alias | The short name of the option. |
Definition at line 347 of file CmdLineOptionParser.cc.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Copies the option value into a OptionValue object.
Client is responsible of deallocating the memery reserved for the returned object.
Implements CmdLineOptionParser.
Definition at line 368 of file CmdLineOptionParser.cc.
References copy(), and value_.
Referenced by copy().

|
private |
Assignment not allowed.
|
virtual |
Parses the value of option.
| arguments | The arguments of option. |
| prefix | The prefix of option. |
| IllegalCommandLine | Not thrown. |
Implements CmdLineOptionParser.
Definition at line 382 of file CmdLineOptionParser.cc.
References CmdLineOptionParser::setDefined(), and value_.

|
virtual |
This implementation should be never called.
| WrongSubclass | Called for a wrong subclass. |
Reimplemented from CmdLineOptionParser.
Definition at line 403 of file CmdLineOptionParser.cc.
|
private |
The value of the option.
Definition at line 200 of file CmdLineOptionParser.hh.
Referenced by copy(), parseValue(), and String().