UnsignedIntOption Class Reference
#include <support.hh>
Inherits BaseOption.
Detailed Description
Unsigned integer option.Definition at line 129 of file support.hh.
Public Member Functions | |
UnsignedIntOption (const char *o, const char *e, unsigned int v=0) | |
Initialize for option o and explanation e and default value v. | |
void | value (unsigned int v) |
Set default value to v. | |
unsigned int | value (void) const |
Return current option value. | |
virtual bool | parse (int &argc, char *argv[]) |
Parse option at first position. | |
virtual void | help (void) |
Print help text. | |
Protected Attributes | |
unsigned int | cur |
Current value. |
Constructor & Destructor Documentation
UnsignedIntOption::UnsignedIntOption | ( | const char * | o, | |
const char * | e, | |||
unsigned int | v = 0 | |||
) | [inline] |
Initialize for option o and explanation e and default value v.
Definition at line 72 of file options.icc.
Member Function Documentation
void UnsignedIntOption::value | ( | unsigned int | v | ) | [inline] |
unsigned int UnsignedIntOption::value | ( | void | ) | const [inline] |
bool UnsignedIntOption::parse | ( | int & | argc, | |
char * | argv[] | |||
) | [virtual] |
void UnsignedIntOption::help | ( | void | ) | [virtual] |
Member Data Documentation
unsigned int UnsignedIntOption::cur [protected] |
The documentation for this class was generated from the following files:
- examples/support.hh (Revision: 7347)
- examples/support/options.cc (Revision: 7347)
- examples/support/options.icc (Revision: 7344)