00001
00002
00004
00005
00006
00008
00009
00010
00011 #ifndef __SettingsStore_h__
00012 #define __SettingsStore_h__
00013
00014
00015 #include "../Common/MSVC_Unannoy.h"
00016 #include <string>
00017 #include <map>
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 class CSettingsStore
00028 {
00029 public:
00030 bool GetBoolOption(const std::string& Key);
00031 long GetLongOption(const std::string& Key);
00032 std::string& GetStringOption(const std::string& Key);
00033
00034 void SetBoolOption(const std::string& Key, bool Value);
00035 void SetLongOption(const std::string& Key, long Value);
00036 void SetStringOption(const std::string& Key, const std::string& Value);
00037
00038 void SetBoolDefault(const std::string& Key, bool Value);
00039 void SetLongDefault(const std::string& Key, long Value);
00040 void SetStringDefault(const std::string& Key, const std::string& Value);
00041 private:
00042
00043
00044
00045
00047
00051
00052
00054
00058
00059
00061
00065
00066
00068
00071
00072
00074
00077
00078
00080
00083
00084
00085
00086 std::map<std::string, bool> BoolMap;
00087 std::map<std::string, long> LongMap;
00088 std::map<std::string, std::string> StringMap;
00089 };
00090
00091
00092 #endif