SizeOptions Class Reference
#include <support.hh>
Inherits Options.
Detailed Description
Options for examples with additional size parameter.Definition at line 290 of file support.hh.
Public Member Functions | |
SizeOptions (const char *s) | |
Initialize options for example with name s. | |
virtual void | help (void) |
Print help text. | |
void | parse (int &argc, char *argv[]) |
Parse options from arguments argv (number is argc). | |
void | size (unsigned int s) |
Set default size. | |
unsigned int | size (void) const |
Return size. | |
Protected Attributes | |
unsigned int | _size |
Size value. |
Constructor & Destructor Documentation
SizeOptions::SizeOptions | ( | const char * | s | ) |
Member Function Documentation
void SizeOptions::help | ( | void | ) | [virtual] |
void SizeOptions::parse | ( | int & | argc, | |
char * | argv[] | |||
) |
Parse options from arguments argv (number is argc).
Reimplemented from Options.
Definition at line 218 of file options.cc.
void SizeOptions::size | ( | unsigned int | s | ) | [inline] |
unsigned int SizeOptions::size | ( | void | ) | const [inline] |
Member Data Documentation
unsigned int SizeOptions::_size [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)