Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

BaseOption Class Reference

#include <support.hh>

Inherited by StringOption, and UnsignedIntOption.

List of all members.


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.
BaseOptionnext
 Next option.

Constructor & Destructor Documentation

BaseOption::BaseOption ( const char *  o,
const char *  e 
) [inline]

Initialize for option o and explanation e.

Definition at line 44 of file options.icc.

BaseOption::~BaseOption ( void   )  [inline, virtual]

Destructor.

Definition at line 47 of file options.icc.


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]

Print help text.

Implemented in StringOption, and UnsignedIntOption.


Member Data Documentation

const char* BaseOption::opt [protected]

String for option (including hyphen).

Definition at line 76 of file support.hh.

const char* BaseOption::exp [protected]

Short explanation.

Definition at line 77 of file support.hh.

Next option.

Definition at line 78 of file support.hh.


The documentation for this class was generated from the following files: