#include <Option.h>
Inheritance diagram for rs::cmdline::RepeatableCmdLineArgument:
Public Methods | |
virtual | ~RepeatableCmdLineArgument () |
std::string | get () |
Get next of the repeated command line arguments. More... | |
virtual void | set (std::string value_, bool set_default_value=false) |
Manually add new argument. More... | |
void | reset () |
resets to the first argument. More... | |
virtual std::string | get_name () const |
Return name of argument (as shown in helptext: i.e. "[<arg>]+" ). More... | |
Protected Methods | |
RepeatableCmdLineArgument (const char *name_, const char *helptext_, int min_occur_, int max_occur_, CmdLineArgumentPredicate isArg_, bool is_real_arg) | |
RepeatableCmdLineArgument may only be constructed by it's child classes. More... | |
int | get_min_occur () const |
int | get_max_occur () const |
int | get_count () const |
Private Attributes | |
int | min_occur |
int | max_occur |
std::list< std::string > | repeated_values |
std::list< std::string > | seen_values |
CmdLineArgumentPredicate | isArg |
int | count |
Friends | |
class | ProgramInfo |
Definition at line 204 of file Option.h.
|
RepeatableCmdLineArgument may only be constructed by it's child classes.
Definition at line 306 of file Option.cpp. |
|
|
|
Get next of the repeated command line arguments. After all values have been read via this function, operator bool() returns false. Further calls return an empty string.
Reimplemented from CmdLineArgument. Reimplemented in RepeatedCmdLineArgumentOption. Definition at line 339 of file Option.cpp. Referenced by RepeatableCmdLineArgument::reset(). |
|
Manually add new argument.
Reimplemented from CmdLineArgument. Reimplemented in RepeatedCmdLineArgumentOption. |
|
resets to the first argument.
Definition at line 356 of file Option.cpp. |
|
Return name of argument (as shown in helptext: i.e. "[<arg>]+" ).
Reimplemented from CmdLineArgument. Reimplemented in RepeatedCmdLineArgumentOption. Definition at line 324 of file Option.cpp. |
|
Definition at line 250 of file Option.h. Referenced by ProgramInfo::init(). |
|
Definition at line 251 of file Option.h. Referenced by ProgramInfo::init(). |
|
Definition at line 252 of file Option.h. Referenced by ProgramInfo::init(). |
|
Reimplemented from CmdLineArgument. |
|
Definition at line 206 of file Option.h. Referenced by RepeatableCmdLineArgument::get_name(), and RepeatableCmdLineArgument::RepeatableCmdLineArgument(). |
|
Definition at line 207 of file Option.h. Referenced by RepeatableCmdLineArgument::get_name(), and RepeatableCmdLineArgument::RepeatableCmdLineArgument(). |
|
Definition at line 208 of file Option.h. Referenced by RepeatableCmdLineArgument::get(), and RepeatableCmdLineArgument::reset(). |
|
Definition at line 209 of file Option.h. Referenced by RepeatableCmdLineArgument::get(), and RepeatableCmdLineArgument::reset(). |
|
Definition at line 210 of file Option.h. Referenced by ProgramInfo::init(), and RepeatableCmdLineArgument::RepeatableCmdLineArgument(). |
|
Definition at line 211 of file Option.h. Referenced by RepeatableCmdLineArgument::RepeatableCmdLineArgument(). |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |