|
OpenASIP 2.2
|
#include <CmdLineOptionParser.hh>


Public Member Functions | |
| StringListCmdLineOptionParser (std::string name, std::string desc, std::string alias="") | |
| virtual | ~StringListCmdLineOptionParser () |
| virtual OptionValue * | copy () const |
| virtual bool | parseValue (std::string arguments, std::string prefix) |
| virtual std::string | String (int index=0) const |
| virtual int | listSize () 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 |
Private Member Functions | |
| StringListCmdLineOptionParser (const StringListCmdLineOptionParser &) | |
| Copying not allowed. | |
| StringListCmdLineOptionParser & | operator= (const StringListCmdLineOptionParser &) |
| Assignment not allowed. | |
Private Attributes | |
| std::vector< std::string > | values_ |
| The values in string list. | |
Additional Inherited Members | |
Protected Member Functions inherited from CmdLineOptionParser | |
| void | setDefined () |
CmdLineOptionParser that has a list of strings as value.
Definition at line 344 of file CmdLineOptionParser.hh.
| StringListCmdLineOptionParser::StringListCmdLineOptionParser | ( | 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 799 of file CmdLineOptionParser.cc.
|
virtual |
Destructor.
Definition at line 808 of file CmdLineOptionParser.cc.
References values_.
|
private |
Copying not allowed.
|
virtual |
Copies the option value into a OptionValue object.
Client is responsible of deallocating the memeory reserved for the returned object.
Implements CmdLineOptionParser.
Definition at line 821 of file CmdLineOptionParser.cc.
References copy(), and values_.
Referenced by copy().

|
virtual |
Returns the number of list elements.
| WrongSubclass | Is never thrown by this function. |
Reimplemented from CmdLineOptionParser.
Definition at line 889 of file CmdLineOptionParser.cc.
References values_.
|
private |
Assignment not allowed.
|
virtual |
Parses the value of string set.
Value should be strings separated by commas.
| arguments | The arguments of option. |
| prefix | The prefix of option. |
| IllegalCommandLine | If argument is invalid. |
Implements CmdLineOptionParser.
Definition at line 837 of file CmdLineOptionParser.cc.
References __func__, CmdLineOptionParser::longName(), CmdLineOptionParser::setDefined(), and values_.

|
virtual |
Returns a particular value of string list option.
| index | The index of list element that is wanted. |
| WrongSubclass | Is never thrown by this function. |
Reimplemented from CmdLineOptionParser.
Definition at line 877 of file CmdLineOptionParser.cc.
|
private |
The values in string list.
Definition at line 367 of file CmdLineOptionParser.hh.
Referenced by copy(), listSize(), parseValue(), String(), and ~StringListCmdLineOptionParser().