gr_prefs.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef INCLUDED_GR_PREFS_H
00023 #define INCLUDED_GR_PREFS_H
00024
00025 #include <string>
00026
00035 class gr_prefs
00036 {
00037 public:
00038 static gr_prefs *singleton();
00039 static void set_singleton(gr_prefs *p);
00040
00041 virtual ~gr_prefs();
00042
00046 virtual bool has_section(const std::string section);
00047
00051 virtual bool has_option(const std::string section, const std::string option);
00052
00056 virtual const std::string get_string(const std::string section,
00057 const std::string option,
00058 const std::string default_val);
00059
00063 virtual bool get_bool(const std::string section,
00064 const std::string option,
00065 bool default_val);
00066
00070 virtual long get_long(const std::string section,
00071 const std::string option,
00072 long default_val);
00073
00077 virtual double get_double(const std::string section,
00078 const std::string option,
00079 double default_val);
00080 };
00081
00082
00083 #endif