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

config.h

Go to the documentation of this file.
00001 
00002 
00008 #ifndef CONFIG_H
00009 #define CONFIG_H
00010 
00011 #include <stdio.h>
00012 
00013 #include <string>
00014 #include <map>
00015 
00016 class Config {
00017     public:
00019     Config ();
00021     ~Config ();
00022 
00024 
00028     bool    openConfig (char* filename);
00029 
00031 
00035     bool    searchTag (char* tag);
00037 
00041     bool    createTag (char* tag);
00042 
00044 
00050     int getIntVariable (char* var);
00052 
00056     char*   getCharVariable (char* var);
00057 
00059 
00064     bool    setVariable (char* var, int val);
00066 
00071     bool    setVariable (char* var, char* str);
00072 
00073 
00074 
00075     private:
00076     string  confFile; 
00077     string  actTag; 
00078     
00080     map <string, map <string, string> > confMap;
00081     
00082     void readConfigFile (); 
00083 };
00084 
00085 #endif

Generated at Sat May 13 13:50:18 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000