Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

optionManager Class Reference

Manager to store and apply options to a collection of optionVI classes. More...

#include <optionManager.h>

Inheritance diagram for optionManager:

optionServer serviceI messageVI optionVI nameVI nameVI List of all members.

Public Methods

 optionManager ()
 Default constructor.

virtual ~optionManager ()
 default destructor.

void setOption (int argc, char* argv[])
 reads the input line C arguments and translate them into set options. More...


Static Public Methods

optionManager* instance ()
 Singleton: returns pointer to the class.


Protected Methods

virtual void defineOption ()
 define the options. More...


Static Private Attributes

optionManager* m_instance = 0
 Singleton: pointer to this class.


Detailed Description

Manager to store and apply options to a collection of optionVI classes.

OptionManager uses optionServer to store and set options to a collection of optionVI classes (see optionServer). OptionManager reads and sets options from a file (i.e centella.in).

Definition at line 24 of file optionManager.h.


Constructor & Destructor Documentation

optionManager::optionManager ( )

Default constructor.

Definition at line 8 of file optionManager.cpp.

optionManager::~optionManager ( ) [inline, virtual]

default destructor.

Definition at line 32 of file optionManager.h.


Member Function Documentation

void optionManager::defineOption ( ) [inline, protected, virtual]

define the options.

The first argument of the main C arg is the name of the input file

Reimplemented from optionVI.

Definition at line 35 of file optionManager.cpp.

optionManager * optionManager::instance ( ) [inline, static]

Singleton: returns pointer to the class.

Definition at line 35 of file optionManager.h.

void optionManager::setOption ( int argc,
char * argv[] )

reads the input line C arguments and translate them into set options.

for the same reason call defineOption() here

Definition at line 26 of file optionManager.cpp.


Member Data Documentation

optionManager * optionManager::m_instance = 0 [static, private]

Singleton: pointer to this class.

Definition at line 48 of file optionManager.h.


The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:41 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000