00001 #ifndef __CONGIFLOADER__H__
00002 #define __CONGIFLOADER__H__
00003
00004 #include <string>
00005
00006 using namespace std;
00007
00008 #include "../Util/Singleton.h"
00009
00010 class ConfigLoader : public Singleton<ConfigLoader>
00011 {
00012 friend class Singleton<ConfigLoader>;
00013
00014 public:
00015 ConfigLoader(void);
00016 ~ConfigLoader(void);
00017
00018
00019 void LoadConfigFile(const char* filename);
00020
00021
00022 const int GetScreenWidth(void) const { return screenWidth; }
00023
00024
00025 const int GetScreenHeight(void) const { return screenHeight; }
00026
00027
00028 const int GetBitsPerPixel(void) const { return bitsPerPixel; }
00029
00030
00031 const int GetRefreshRate(void) const { return refreshRate; }
00032
00033
00034 const int IsFullScreen(void) const { return fullScreen; }
00035
00036
00037 const char* GetWindowName(void) const { return windowName.c_str(); }
00038
00039
00040 const char* GetDataPath(void) const { return dataPath.c_str(); }
00041
00042 private:
00043
00044 int screenWidth;
00045
00046
00047 int screenHeight;
00048
00049
00050 int bitsPerPixel;
00051
00052
00053 int refreshRate;
00054
00055
00056 int fullScreen;
00057
00058
00059 string windowName;
00060
00061
00062 string dataPath;
00063 };
00064 #endif