openModeller  Version 1.5.0
Settings.hh
Go to the documentation of this file.
1 
27 #ifndef _SETTINGS_HH_
28 #define _SETTINGS_HH_
29 
30 #include <string>
31 #include <vector>
32 
35 
36 /*******************************************************/
37 /*********************** Settings **********************/
38 
42 class dllexp Settings {
43 
44 public:
45 
46  ~Settings();
47 
51  static void loadConfig( const std::string configFile );
52 
57  static std::string get( const std::string & key );
58 
63  static int count( const std::string & key );
64 
69  static std::vector<std::string> getAll( const std::string & key );
70 
71 private:
72 
73  Settings();
74 
75  static Settings& _getInstance();
76 
77  static void _loadConfig( Settings * settings, const std::string configFile );
78 
80 };
81 
82 #endif
FileParser * _fp
Definition: Settings.hh:79