Diffstat (limited to 'noncore/games/sfcave-sdl/settings.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/games/sfcave-sdl/settings.h b/noncore/games/sfcave-sdl/settings.h index 5e828ed..a3af999 100644 --- a/noncore/games/sfcave-sdl/settings.h +++ b/noncore/games/sfcave-sdl/settings.h @@ -11,42 +11,44 @@ // not specified then a default directory of .<DEFAULT_DIR> will be created in // the users home directory. A file will be created in this directory. The name // will be the one specified by the caller. If none is specified then // DEFAULT_FILE will be created. // To retrieve and store strings into the file readSetting and writeSetting // should be called. #include <string> using namespace std; class Settings { public: Settings( char * env_file = 0, char * env_dir = 0 ); Settings(); ~Settings(); bool readSetting(const string key_str,string& results); bool readSetting(const string key_str,int& result); bool readSetting(const string key_str,unsigned int& result); bool readSetting(const string key_str,long int& result); bool readSetting(const string key_str,unsigned long& result); + bool readSetting(const string key_str,double & result); bool readSetting(const string key_str,bool& result); void writeSetting(const string key_str,const string value); void writeSetting(const string key_str,const int value); void writeSetting(const string key_str,const unsigned int result); void writeSetting(const string key_str,const long int result); void writeSetting(const string key_str,const unsigned long result); + void writeSetting(const string key_str,const double value); void writeSetting(const string key_str,const bool value); void deleteFile(void); private: string envFile; }; #endif |