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.

 ~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]

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 33 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.

add itself to the optionManager. The messageManager is constructed later, therefore we can not include optionManager in the server of messageManager yet

Definition at line 24 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 Wed Jun 28 17:41:11 2000 for Centella Framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000