aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/settingsdriverini.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-24 23:37:37 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-24 23:37:37 +0000
commit2ff45ffd1a7ef36369c135090b39528860b25684 (patch)
treed5dfc12b29cb684812bd00b72bc61df2ed618488 /src/unstable/settingsdriverini.h
parent3c38c55a26df5b2d8827b88a99f5bb996c4d13c2 (diff)
downloadlibbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.gz
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.bz2
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.xz
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.zip
Ini driver is close, loading isn't working perfectly yet...
Diffstat (limited to 'src/unstable/settingsdriverini.h')
-rw-r--r--src/unstable/settingsdriverini.h29
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
8namespace 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