#include <Option.h>
Inheritance diagram for rs::cmdline::RepeatedCmdLineArgumentOption:
Public Methods | |
RepeatedCmdLineArgumentOption (char optChar_, const char *argname_, char separator_, const char *helptext_, const char *value_=0) | |
declare a command line switch with repeated argument. More... | |
virtual | ~RepeatedCmdLineArgumentOption () |
virtual void | set (std::string value_, bool set_default_value=false) |
Manually set the options state to 'given' and set the value of the argument of the option. More... | |
std::string | get () |
Get the next part of the separated arguments. More... | |
virtual void | clear () |
Manually set the state of the option to 'not given'. More... | |
virtual std::string | get_name () const |
Return name of argument option (as shown in helptext: i.e. '<arg>[,<arg>]*' ). More... | |
virtual bool | reallyUsed () const |
Return true only if option was given on command line or set using set. More... | |
Protected Methods | |
virtual void | print (std::ostream &out) const |
virtual bool | takes_argument () const |
Private Attributes | |
char | separator |
Example: -e "text1;text2;text3"
Definition at line 369 of file Option.h.
|
declare a command line switch with repeated argument.
Definition at line 382 of file Option.cpp. |
|
|
|
Manually set the options state to 'given' and set the value of the argument of the option.
Reimplemented from RepeatableCmdLineArgument. Definition at line 395 of file Option.cpp. |
|
Get the next part of the separated arguments. After all values have been read via this function, operator bool() returns false. Further calls return an empty string.
Reimplemented from RepeatableCmdLineArgument. |
|
Manually set the state of the option to 'not given'.
Reimplemented from CmdLineOption. |
|
Return name of argument option (as shown in helptext: i.e. '<arg>[,<arg>]*' ).
Reimplemented from RepeatableCmdLineArgument. Definition at line 413 of file Option.cpp. Referenced by RepeatedCmdLineArgumentOption::print(), and RepeatedCmdLineArgumentOption::RepeatedCmdLineArgumentOption(). |
|
Return true only if option was given on command line or set using set. operator bool() also returns true if the option was set by specifying a default value. Reimplemented from CmdLineOption. |
|
Reimplemented from CmdLineOption. Definition at line 421 of file Option.cpp. |
|
Reimplemented from CmdLineOption. |
|
Definition at line 371 of file Option.h. Referenced by RepeatedCmdLineArgumentOption::get_name(), and RepeatedCmdLineArgumentOption::set(). |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |