From 2ff45ffd1a7ef36369c135090b39528860b25684 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 24 Aug 2012 23:37:37 +0000 Subject: Ini driver is close, loading isn't working perfectly yet... --- src/unstable/settingsdriverini.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/unstable/settingsdriverini.h (limited to 'src/unstable/settingsdriverini.h') 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 @@ +#ifndef BU_SETTINGS_DRIVER_INI_H +#define BU_SETTINGS_DRIVER_INI_H + +#include "bu/settingsdriver.h" +#include "bu/string.h" +#include "bu/hash.h" + +namespace Bu +{ + class SettingsDriverIni : public SettingsDriver + { + public: + SettingsDriverIni(); + virtual ~SettingsDriverIni(); + + protected: + virtual void init( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct ); + virtual void set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); + virtual Bu::UtfString get( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); + + private: + Bu::String sPath; + typedef Bu::Hash StrHash; + typedef Bu::Hash GroupHash; + GroupHash hGroup; + }; +}; + +#endif -- cgit v1.2.3