Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

flow_pref.h

00001 // Copyright (C) 2001 Jean-Marc Valin & Dominic Letourneau
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 }//namespace FD
00033 #endif

Generated on Wed Oct 5 14:28:55 2005 for FlowDesigner by  doxygen 1.4.4