#include <Option.h>
Inheritance diagram for rs::cmdline::CmdLineArgumentOption:
Public Methods | |
CmdLineArgumentOption (char optChar_, const char *argname_, const char *helptext_, const char *value_=0) | |
Declare a new argument option. More... | |
virtual | ~CmdLineArgumentOption () |
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... | |
virtual void | clear () |
Manually set the state of the option to 'not given'. 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 |
Definition at line 319 of file Option.h.
|
Declare a new argument option. CmdLineArgumentOptions should be declared global.
Definition at line 158 of file Option.cpp. |
|
Definition at line 179 of file Option.cpp. |
|
Manually set the options state to 'given' and set the value of the argument of the option.
Reimplemented from CmdLineArgument. Definition at line 339 of file Option.h. Referenced by ProgramInfo::init(). |
|
Manually set the state of the option to 'not given'.
Reimplemented from CmdLineOption. |
|
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 185 of file Option.cpp. |
|
Reimplemented from CmdLineOption. |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |