Generated on Mon Jul 6 18:09:27 2009 for Gecode by doxygen 1.5.9

Gecode::BaseOptions Class Reference
[Commandline options for running scripts]

Base class for script options. More...

#include <driver.hh>

List of all members.

Public Member Functions

 BaseOptions (const char *s)
 Initialize options for script with name s.
virtual void help (void)
 Print help text.
void add (Driver::BaseOption &o)
 Add new option o.
void parse (int &argc, char *argv[])
 Parse options from arguments argv (number is argc).
const char * name (void) const
 Return name of script.
void name (const char *)
 Set name of script.
virtual ~BaseOptions (void)
 Destructor.

Protected Attributes

Driver::BaseOptionfst
 First registered option.
Driver::BaseOptionlst
 Last registered option.
const char * _name
 Script name.


Detailed Description

Base class for script options.

Definition at line 250 of file driver.hh.


Constructor & Destructor Documentation

Gecode::BaseOptions::BaseOptions ( const char *  s  ) 

Initialize options for script with name s.

Definition at line 214 of file options.cpp.

Gecode::BaseOptions::~BaseOptions ( void   )  [inline, virtual]

Destructor.

Definition at line 162 of file options.hpp.


Member Function Documentation

void Gecode::BaseOptions::help ( void   )  [virtual]

Print help text.

Reimplemented in BIBDOptions, LangfordNumberOptions, SatOptions, SteelMillOptions, and Gecode::SizeOptions.

Definition at line 218 of file options.cpp.

void Gecode::BaseOptions::add ( Driver::BaseOption o  )  [inline]

Add new option o.

Definition at line 144 of file options.hpp.

void Gecode::BaseOptions::parse ( int &  argc,
char *  argv[] 
)

Parse options from arguments argv (number is argc).

Reimplemented in BIBDOptions, EFPAOptions, LangfordNumberOptions, SatOptions, SteelMillOptions, and Gecode::SizeOptions.

Definition at line 251 of file options.cpp.

const char * Gecode::BaseOptions::name ( void   )  const [inline]

Return name of script.

Definition at line 154 of file options.hpp.

void Gecode::BaseOptions::name ( const char *  n  )  [inline]

Set name of script.

Definition at line 158 of file options.hpp.


Member Data Documentation

First registered option.

Definition at line 252 of file driver.hh.

Last registered option.

Definition at line 253 of file driver.hh.

const char* Gecode::BaseOptions::_name [protected]

Script name.

Definition at line 254 of file driver.hh.


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