#include <CmdLineOptionParser.hh>
CmdLineOptionParser that has a string as a value.
Definition at line 180 of file CmdLineOptionParser.hh.
◆ StringCmdLineOptionParser() [1/2]
StringCmdLineOptionParser::StringCmdLineOptionParser |
( |
std::string |
name, |
|
|
std::string |
desc, |
|
|
std::string |
alias = "" |
|
) |
| |
Constructor.
- Parameters
-
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.
◆ ~StringCmdLineOptionParser()
StringCmdLineOptionParser::~StringCmdLineOptionParser |
( |
| ) |
|
|
virtual |
◆ StringCmdLineOptionParser() [2/2]
◆ copy()
OptionValue * StringCmdLineOptionParser::copy |
( |
| ) |
const |
|
virtual |
◆ operator=()
◆ parseValue()
bool StringCmdLineOptionParser::parseValue |
( |
std::string |
arguments, |
|
|
std::string |
prefix |
|
) |
| |
|
virtual |
Parses the value of option.
- Parameters
-
arguments | The arguments of option. |
prefix | The prefix of option. |
- Returns
- True when parsing is ready.
- Exceptions
-
Implements CmdLineOptionParser.
Definition at line 382 of file CmdLineOptionParser.cc.
385 string msg =
"Illegal prefix for string option";
386 string method =
"StringCmdLineOptionParser::parseValue()";
390 if (arguments ==
"") {
391 string msg =
"Missing value for string option.";
392 string method =
"StringCmdLineOptionParser::parseValue()";
References CmdLineOptionParser::setDefined(), and value_.
◆ String()
string StringCmdLineOptionParser::String |
( |
int |
index = 0 | ) |
const |
|
virtual |
◆ value_
std::string StringCmdLineOptionParser::value_ |
|
private |
The documentation for this class was generated from the following files: