aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/settingsdriverini.h
blob: bd3097d6a151c858a0a7f27bc2c9f93ff4e25099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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<Bu::UtfString, Bu::UtfString> StrHash;
        typedef Bu::Hash<Bu::UtfString, StrHash> GroupHash;
        GroupHash hGroup;
    };
};

#endif