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

optionManager.h

Go to the documentation of this file.
00001 #ifndef OPTIONMANAGER_H
00002 #define OPTIONMANAGER_H
00003 
00004 #include "Event/optionServer.h"
00005 #include "Event/serviceI.h"
00006 #include "Event/serverVI.h"
00007 
00008 //------------------------------------------------
00010 /*! 
00011 \e OptionManager uses optionServer to store and set options to a collection
00012 of optionVI classes (see optionServer).
00013 \e OptionManager reads and sets options from a file (i.e centella.in).<br>
00014 <ul>
00015         <li> The method \c setOption(int, char*) allows to pass the C \c main()
00016         arguments into the optionManager and handle them as convenient.
00017 </ul>
00018 */
00019 //----------------------------------------------
00020 //             J.A Hernando, Santa Cruz 02/29/00
00021 //----------------------------------------------
00022 
00023 //##############################
00024 class optionManager : public optionServer, public serviceI
00025 //##############################
00026 {
00027 public:
00028         
00030         optionManager();
00032         virtual ~optionManager() {};
00033         
00035         static optionManager* instance() {return m_instance;}
00036 
00038         void setOption(int argc, char* argv[]);
00039 
00040 protected:
00041 
00043         virtual void defineOption();
00044 
00045 private:
00046 
00048         static optionManager* m_instance;
00049 };
00050 
00051 #endif

Generated at Fri Aug 18 12:57:38 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000