]> git.jsancho.org Git - lugaru.git/blob - Source/Setting.cpp
oops
[lugaru.git] / Source / Setting.cpp
1 #include "Setting.h"
2
3 template <class T>
4 Setting::Setting(const char* key, T& value) {
5     sKey = string(key);
6     sValue = v;
7 }
8
9 string Setting::getKey() const {
10     return sKey;
11 }
12
13 template <class T>
14 T Setting::getValue() const {
15     return sValue;
16 }
17
18 template <class T>
19 void Setting::setValue(T& value) {
20     sValue = value;
21 }
22
23 template <class T>
24 stream operator<<(stream& str, const Setting<T>& set) {
25     str << set.sKey << endl;
26     str << set.sValue << endl;
27 }