00001 
00002 
00003 #ifndef FLOW_PREF_H
00004 #define FLOW_PREF_H
00005 
00006 #include <map>
00007 #include <string>
00008 
00009 namespace FD {
00010 
00011 class FlowPref {
00012    int modified;
00013    std::map<std::string, std::map<std::string,std::string> > params;
00014 
00015    static FlowPref pref;
00016   public:
00017    FlowPref();
00018    ~FlowPref();
00019    void load();
00020    void save();
00021 
00022    static bool getBool(const std::string &cat, const std::string &str);
00023    static void setBool(const std::string &cat, const std::string &str, bool val);
00024 
00025    static unsigned int getColor(const std::string &cat, const std::string &str);
00026    static void setColor(const std::string &cat, const std::string &str, unsigned int col);
00027 
00028    static void Save();
00029 };
00030 
00031 
00032 }
00033 #endif