openModeller
Version 1.4.0
|
00001 00027 #ifndef _SETTINGS_HH_ 00028 #define _SETTINGS_HH_ 00029 00030 #include <string> 00031 #include <vector> 00032 00033 #include <openmodeller/os_specific.hh> 00034 #include <openmodeller/FileParser.hh> 00035 00036 /*******************************************************/ 00037 /*********************** Settings **********************/ 00038 00042 class dllexp Settings { 00043 00044 public: 00045 00046 ~Settings(); 00047 00051 static void loadConfig( const std::string configFile ); 00052 00057 static std::string get( const std::string & key ); 00058 00063 static int count( const std::string & key ); 00064 00069 static std::vector<std::string> getAll( const std::string & key ); 00070 00071 private: 00072 00073 Settings(); 00074 00075 static Settings& _getInstance(); 00076 00077 static void _loadConfig( Settings * settings, const std::string configFile ); 00078 00079 FileParser * _fp; 00080 }; 00081 00082 #endif