BaseOption Class Reference
#include <support.hh>
Inherited by StringOption, and UnsignedIntOption.
Detailed Description
Base class for options.Definition at line 73 of file support.hh.
Public Member Functions | |
BaseOption (const char *o, const char *e) | |
Initialize for option o and explanation e. | |
virtual bool | parse (int &argc, char *argv[])=0 |
Parse option at first position and possibly delete. | |
virtual void | help (void)=0 |
Print help text. | |
virtual | ~BaseOption (void) |
Destructor. | |
Protected Attributes | |
const char * | opt |
String for option (including hyphen). | |
const char * | exp |
Short explanation. | |
BaseOption * | next |
Next option. |
Constructor & Destructor Documentation
BaseOption::BaseOption | ( | const char * | o, | |
const char * | e | |||
) | [inline] |
BaseOption::~BaseOption | ( | void | ) | [inline, virtual] |
Member Function Documentation
virtual bool BaseOption::parse | ( | int & | argc, | |
char * | argv[] | |||
) | [pure virtual] |
Parse option at first position and possibly delete.
Implemented in StringOption, and UnsignedIntOption.
virtual void BaseOption::help | ( | void | ) | [pure virtual] |
Member Data Documentation
const char* BaseOption::opt [protected] |
const char* BaseOption::exp [protected] |
BaseOption* BaseOption::next [protected] |
The documentation for this class was generated from the following files:
- examples/support.hh (Revision: 7347)
- examples/support/options.icc (Revision: 7344)