Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > ad4af867860cf1de015e1bf4e58e1650 > files > 73

einstein-2.0-1mdv2010.2.i586.rpm

#ifndef __TABLESTORAGE_H__
#define __TABLESTORAGE_H__


#include "storage.h"
#include "table.h"


class TableStorage: public Storage
{
    private:
        Table table;
    
    public:
        TableStorage();
        virtual ~TableStorage();

    public:
        virtual int get(const std::wstring &name, int dflt);
        virtual std::wstring get(const std::wstring &name, 
                const std::wstring &dflt);
        virtual void set(const std::wstring &name, int value);
        virtual void set(const std::wstring &name, const std::wstring &value);
        virtual void flush();

    private:
        std::wstring getFileName();
};


#endif