Base class for options.
More...
#include <driver.hh>
|
| BaseOption (const char *o, const char *e) |
| Initialize for option o and explanation e. More...
|
|
virtual int | parse (int argc, char *argv[])=0 |
| Parse option at first position and return number of parsed arguments. More...
|
|
virtual void | help (void)=0 |
| Print help text. More...
|
|
virtual | ~BaseOption (void) |
| Destructor. More...
|
|
|
static char * | strdup (const char *s) |
| Create heap-allocated copy of string s. More...
|
|
static void | strdel (const char *s) |
| Delete heap-allocated copy of string s. More...
|
|
|
char * | argument (int argc, char *argv[]) const |
|
Base class for options.
Definition at line 124 of file driver.hh.
Gecode::Driver::BaseOption::BaseOption |
( |
const char * |
o, |
|
|
const char * |
e |
|
) |
| |
Initialize for option o and explanation e.
Definition at line 83 of file options.cpp.
Gecode::Driver::BaseOption::~BaseOption |
( |
void |
| ) |
|
|
virtual |
char * Gecode::Driver::BaseOption::argument |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| const |
|
protected |
virtual int Gecode::Driver::BaseOption::parse |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
pure virtual |
virtual void Gecode::Driver::BaseOption::help |
( |
void |
| ) |
|
|
pure virtual |
char * Gecode::Driver::BaseOption::strdup |
( |
const char * |
s | ) |
|
|
static |
Create heap-allocated copy of string s.
Definition at line 56 of file options.cpp.
void Gecode::Driver::BaseOption::strdel |
( |
const char * |
s | ) |
|
|
static |
Delete heap-allocated copy of string s.
Definition at line 65 of file options.cpp.
const char* Gecode::Driver::BaseOption::opt |
|
protected |
String for option (including hyphen)
Definition at line 127 of file driver.hh.
const char* Gecode::Driver::BaseOption::exp |
|
protected |
Short explanation.
Definition at line 128 of file driver.hh.
Next option Check for option and return its argument.
Definition at line 129 of file driver.hh.
The documentation for this class was generated from the following files: