#include <optionManager.h>
Inheritance diagram for optionManager:
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. |
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).
setOption(int
, char*) allows to pass the C main()
arguments into the optionManager and handle them as convenient.
Definition at line 24 of file optionManager.h.
|
|
|
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.
|
|
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.
|