#include <Option.h>
Inheritance diagram for rs::cmdline::CmdLineOption:


Public Methods | |
| CmdLineOption (char optChar_, const char *helptext_) | |
| Declare a new command line option. More... | |
| virtual | ~CmdLineOption () |
| operator bool () const | |
| Test an option. More... | |
| virtual bool | reallyUsed () const |
| same as operator bool(). More... | |
| void | set () |
| Manually set the options state to 'given'. More... | |
| virtual void | clear () |
| Manually set the options state to 'not given'. More... | |
| char | get_optChar () const |
| get the option character (i.e. 'x' for option -x). More... | |
Protected Methods | |
| virtual void | print (std::ostream &out) const |
| virtual bool | takes_argument () const |
Private Attributes | |
| bool | used |
| char | optChar |
Friends | |
| class | ProgramInfo |
Definition at line 67 of file Option.h.
|
||||||||||||
|
Declare a new command line option. Options should be declared global.
Definition at line 124 of file Option.cpp. |
|
|
Definition at line 136 of file Option.cpp. |
|
|
Test an option.
|
|
|
same as operator bool().
Reimplemented in CmdLineArgumentOption, and RepeatedCmdLineArgumentOption. Definition at line 88 of file Option.h. Referenced by ProgramInfo::init(), and ProgramInfo::neededBy(). |
|
|
Manually set the options state to 'given'.
Definition at line 91 of file Option.h. Referenced by ProgramInfo::init(), and RepeatedCmdLineArgumentOption::RepeatedCmdLineArgumentOption(). |
|
|
Manually set the options state to 'not given'.
Reimplemented in CmdLineArgumentOption, and RepeatedCmdLineArgumentOption. |
|
|
get the option character (i.e. 'x' for option -x).
Definition at line 97 of file Option.h. Referenced by ProgramInfo::neededBy(), RepeatedCmdLineArgumentOption::print(), and CmdLineArgumentOption::print(). |
|
|
Reimplemented in CmdLineArgumentOption, and RepeatedCmdLineArgumentOption. Definition at line 139 of file Option.cpp. |
|
|
Reimplemented in CmdLineArgumentOption, and RepeatedCmdLineArgumentOption. Definition at line 102 of file Option.h. Referenced by ProgramInfo::init(). |
|
|
|
|
|
Definition at line 68 of file Option.h. Referenced by CmdLineOption::CmdLineOption(). |
|
|
Definition at line 69 of file Option.h. Referenced by CmdLineOption::CmdLineOption(), and CmdLineOption::print(). |
|
Contact me in case of errors or questions. This documentation is powered by |
(C) 2000-2002 |