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

Config.h

Go to the documentation of this file.
00001 #ifndef _CONFIG_H_
00002 #define _CONFIG_H_
00003 
00004 #include <fstream>
00005 #include <iostream>
00006 #include <string>
00007 using namespace std;
00008 
00009 #ifndef WIN32
00010 #include <sys/stat.h>
00011 #include <sys/types.h>
00012 #endif
00013 
00014 class Config
00015 {
00016  public:
00017   Config();
00018   virtual ~Config();
00019 
00020   static void setFullScreen(bool t) { _fullScreen = t; }
00021   static bool getFullScreen() { return _fullScreen; }
00022   static void setWidth(int t) { _width = t; }
00023   static int getWidth() { return _width; }
00024   static void setHeight(int t) { _height = t; }
00025   static int getHeight() { return _height; }
00026   static void setDepth(int t) { _depth = t; }
00027   static int getDepth() { return _depth; }
00028   static void setName(string s) { _name = s; }
00029   static string getName() { return _name; }
00030   static void setStereo(bool t) { _stereo = t; }
00031   static bool getStereo() { return _stereo; }
00032 
00033  protected:
00034   static void readConfig();
00035   static void writeConfig();
00036 
00037   // video
00038   static bool _fullScreen;
00039   static int _width;
00040   static int _height;
00041   static int _depth;
00042   static string _name;
00043   static bool _stereo; // display in stereo for the visbox ?
00044 
00045   // in/out files
00046   static ifstream _infile;
00047   static ofstream _outfile;
00048 };
00049 
00050 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18