]> git.jsancho.org Git - lugaru.git/blob - Source/Setting.h
oops
[lugaru.git] / Source / Setting.h
1 #ifndef SETTINGS_H_
2 #define SETTINGS_H_
3
4 #include <iostream>
5 #include <string>
6
7 using namespace std;
8
9 template<class T>
10 class Setting {
11 public:
12     Setting(const char* key, T& value);
13     
14     string getKey() const;
15     T getValue() const;
16     
17     void setValue(T& value);
18     
19     stream operator<<(stream& s, const Setting<T>& s);
20 private:
21     string sKey;
22     T sValue;    
23 };
24
25 #endif /* SETTINGS_H_ */