diff options
Diffstat (limited to '')
-rw-r--r-- | src/unstable/settingsdriverini.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/unstable/settingsdriverini.h b/src/unstable/settingsdriverini.h new file mode 100644 index 0000000..c3942d6 --- /dev/null +++ b/src/unstable/settingsdriverini.h | |||
@@ -0,0 +1,29 @@ | |||
1 | #ifndef BU_SETTINGS_DRIVER_INI_H | ||
2 | #define BU_SETTINGS_DRIVER_INI_H | ||
3 | |||
4 | #include "bu/settingsdriver.h" | ||
5 | #include "bu/string.h" | ||
6 | #include "bu/hash.h" | ||
7 | |||
8 | namespace Bu | ||
9 | { | ||
10 | class SettingsDriverIni : public SettingsDriver | ||
11 | { | ||
12 | public: | ||
13 | SettingsDriverIni(); | ||
14 | virtual ~SettingsDriverIni(); | ||
15 | |||
16 | protected: | ||
17 | virtual void init( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct ); | ||
18 | virtual void set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); | ||
19 | virtual Bu::UtfString get( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); | ||
20 | |||
21 | private: | ||
22 | Bu::String sPath; | ||
23 | typedef Bu::Hash<Bu::UtfString, Bu::UtfString> StrHash; | ||
24 | typedef Bu::Hash<Bu::UtfString, StrHash> GroupHash; | ||
25 | GroupHash hGroup; | ||
26 | }; | ||
27 | }; | ||
28 | |||
29 | #endif | ||